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

What is Framer? Join the Community
Return to index
Pedro Grey
Posted Jun 26 - Read on Facebook

Hey everyone :) I'm trying to capture the cursor's coordinates during a drag event *right* when the cursor drags past a certain point. Is there a way to listen for event.x, and then record the Y value at the moment when that x value passes the threshold?

I've tried using "if event.x == [threshold]" during "onDragMove" to pinpoint that moment, but that never seems to be triggered while I'm dragging.

If I use the following code, the event.y keeps getting dynamically updated so that moment when the cursor broke the threshold is lost...

X.onDragMove ->
...if event.x > threshold
......captureY = event.y