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

What is Framer? Join the Community
Return to index
James Caruso
Posted Jul 27 - Read on Facebook

Hi, I have a question about how the code for only dragging left works. If you were to write it to only slide right, how would you do that?

2 Comments

Koen Bok

I added something for this a while ago, but I'm not happy with it yet and it's undocumented for now. But you can still use it.

myLayer.draggable.maxDragFrame = {width:100, height:100}
https://github.com/koenbok/Framer/blob/master/framer/LayerDraggable.coffee#L102

James Caruso

Koen Bok, thanks for the update. I really appreciate it.

Read the entire post on Facebook