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

What is Framer? Join the Community
Return to index
Sean Nelson
Posted Mar 04 - Read on Facebook

Hi Framers! I'm trying to replicate the photo resizing and panning you'd experience in iOS but can't wrap my head around how draggable.constraints is supposed to work. In the beginning of this video I have it turned off and then switch it on to show what's happening. I'd like the edges of the image to be constrained to the width and height of the screen (like in iOS). Thanks for any insights you all might have!


James Jun

Uh, you have an indentation error when you uncomment, that may be skewing the result.

Constraints is an object that can contain X, Y, width, and height. You've set the X and Y, simply include the width and height of the constraints as well.

Read the entire post on Facebook