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

What is Framer? Join the Community
Return to index
Ray Cheng
Posted Nov 04 - Read on Facebook

Hi, I made a draggable layer that's bouned to its dragging contraints. It works for the most part, but the layer flys off the screen when I "flick" it even though it bounces back to the origin as defined. How can I make it so that the layer doesn't fly of the screen? What did I miss?

2 Comments

Jonas Treub

Short answer:

layerA = new Layer
layerA.draggable.constraints = Screen
layerA.draggable.overdrag = false
layerA.draggable.bounce = false

Jonas Treub

If you want to learn more about these properties I can recommend the docs.

Read the entire post on Facebook