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

What is Framer? Join the Community
Return to index
Brandon Souba
Posted Nov 07 - Read on Facebook

I'm trying to place a map within a smaller mask area and have it draggable only within the bounds of the mask. I figured draggable.constraints would work, but it is funky.

I did figure out a solution using an if statement for the draggable x position of the map (if map.x > number, draggable.speedX = 0) , but is there something better?

Here is the funky example:

4 Comments

Josh Puckett
Jorn van Dijk

I was confused about this recently as well. You can use ScrollComponent to get the behavior you want.

Eugene Dobrovolsky

Brandon, could you share a link to this prototype?

Koen Bok

I should warn you if your contents is larger than your constraints. I can see how this is confusing.

Read the entire post on Facebook