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

What is Framer? Join the Community
Return to index
Ed Lea
Posted Jul 30 - Read on Facebook

Having trouble with differentiating between clicking and dragging. I have a scroll component full of clickable things. But swiping the scroll component is triggering the click. Any advice?

3 Comments

Min-Sang Choi

I'd add a if condition before fire click event to see the delta between touchstart and touchend. here's revised verison : http://share.framerjs.com/fn42v3st8s62/

Ed Lea

Min-Sang Choi that's the path I started down, but it doesn't seem to work. I think the initial touch stops the animation so the delta is 0

Min-Sang Choi

Ed Lea to make sure you can also check if scollcomponent is scrolling or not by listening to ScrollEnd and Scroll : http://share.framerjs.com/vuntkoeipr9n/

Read the entire post on Facebook