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

What is Framer? Join the Community
Return to index
Jesper Wøldiche
Posted Apr 22 - Read on Facebook

Is it possible to lock dragging to a direction other that strictly vertical or horizontal?

Alternatively is there a way to change the y position based on x position as the user drags a layer?

I'm trying to prototype an interface in which the user can drag a marker along a simple line chart.

2 Comments

Mike Kotsch

I'd try combining those two together: http://share.framerjs.com/86hfmh7kcfp0/
http://share.framerjs.com/txw9r3jidl32/

One is making a moth along a path, the other one translates a drag movement into a rotation / increasing variable.

Jesper Wøldiche

Thank you :-) It made me realise, that I could solve it by dragging another layer instead horizontally with the same position on the x-axis and use that to manipulate the marker on the graph :-)

Read the entire post on Facebook