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

What is Framer? Join the Community
Return to index
Patrick Hansen
Posted Nov 13 - Read on Facebook

Is there a way to detect drag and/or scroll direction? I tried messing with calculateVelocity(), but that returns both x, y velocities. I want to create a conditional based on the direction of just the y event.


Koen Bok

Yep. Just store and compare the current x/y with the previous. If delta x > 0 then we're moving right and vice versa.

Patrick Hansen

thanks. I'll try that out.

Read the entire post on Facebook