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

What is Framer? Join the Community
Return to index
Katie Wu
Posted Jul 20 - Read on Facebook

So I've made the only the top layer of a PageComponent draggable but I want to restrict the dragging only horizontal dragging. I've written these lines:
------sampleProject.draggable.vertical = false
------sampleProject.draggable.horizontal = true
but it doesn't work? I can still drag in all directions. Any ideas?


Jonas Treub

If you set the directionLock for both draggables to true you probably get the behaviour you are after.

Katie Wu

Oh you meant both the content and the PageComponent itself? Thank you that seemed to work!

Read the entire post on Facebook