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

What is Framer? Join the Community
Return to index
Tudor Munteanu
Posted Feb 26 - Read on Facebook

I've been trying to use draggable.directionLock in a prototype recently and it seems to not work so I've compared it to the example on the website — http://framer.com/examples/preview/#swipe-n-scroll.framer#code which works as it's suppose to. But, as soon as I download and update the project to v.54 it stops working — http://share.framerjs.com/a9f08pv9ov1x/ . Any idea why? Thanks in advance!

2 Comments

Floris Verloop

Thanks for sharing! Not really sure why it has been working all along, but the draggable layers inside of the scroll component also need directLock set to true. Here's the updated example (added direction lock on line 51). → http://share.framerjs.com/oateaa6sijtc/

Tudor Munteanu

Thanks! Works now, though after scrolling vertically it sometimes takes 2 tries to be able to swipe the item horizontally. Not that important but maybe something to look into.

Read the entire post on Facebook