Replies: 1 comment
-
I'd suggest asking for help from the maintainer of the plugin. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @artf and GrapesJS Community,
I'm trying to add ruler functionality and have used the code here as a resource: /~https://github.com/Ju99ernaut/grapesjs-rulers#readme
The code there works but I'm trying to extend the ruler functionality so you actually see lines follow your cursor when you active the ruler command like so:

It works while the cursor is outside of the body of the canvas but once I hover over the canvas its rendered positions has an offset and that offset gets smaller as I glide to the left, Shown in the GIF below:

One thing that caused the ruler lines to actually snap to the right spot was when the cursor detected a pointer event if that helps. Would love some direction as to what solutions to explore next ❤️
Beta Was this translation helpful? Give feedback.
All reactions