Infinite canvas and mousemove
event
#6097
bgrand-ch
started this conversation in
Show and tell
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I use the infinite canvas and the "grapesjs-click" plugin.
The
mousemove
event in the "grapesjs-click" plugin is used to make an HTML element follow the mouse cursor.The X and Y positions of the HTML element were transformed when the cursor passed over the iframe (
.gjs-frame
).Below is the code of the "grapesjs-click" plugin to retrieve the coordinates of the mouse cursor with the infinite canvas:
More info:
bgrand-ch/grapesjs-click@68bf26c
Beta Was this translation helpful? Give feedback.
All reactions