This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Francois Jordaan
Posted Jun 15 - Read on Facebook

Another simple question, if I may. How do I set the cursor position? I want a statement like
if cursorY > 420
cursorY = 420
Obviously the 2nd line won't work, but I want to somehow set the cursor Y position to 420 so that I "trap" the cursor from going below that point.


Brian Williams

um set it to one bellow? oh wait that should be fine

Francois Jordaan

i'm looking for the statement that will actually set the cursor position. If that second line does anything it just sets the value of a variable.

Buck Wilson

I don't believe you can set the mouse pointer position with javascript.

Francois Jordaan

Ah ok. Thanks!

Read the entire post on Facebook