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

What is Framer? Join the Community
Return to index
Nik Udovitskiy
Posted Feb 19 - Read on Facebook

Hey guys, is there a way to make a layer draggable if only it is being "pressed" at a specific location within the layer? Thanks!


Floris Verloop

The easiest way to do this is by adding a child layer that functions as it's "hit area".

When the child layer is clicked, enable dragging on it's parent and when the dragEnd event fires, disable dragging.


Nik Udovitskiy

Thank you so much!

Read the entire post on Facebook