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

What is Framer? Join the Community
Return to index
David Lee
Posted Dec 30 - Read on Facebook

How can I pass values from one event to another without using global variables?
ie. TouchStart to TouchEnd

4 Comments

Koen Bok

Hmm without knowing exactly what you want to do, I'd say something like this: http://share.framerjs.com/4p5azwa2gmmc/

David Lee

http://share.framerjs.com/ughepf3cbf2k/
This seems like working when scrolling or swiping slowly. But when trying to scroll fast, the initially touched layer moves left or right a bit as well.
I referred to this example (http://framerjs.com/examples/preview/#scroll-n-click.framer#code) but the difference is that I use draggable layers.

Marc Krenn

Not sure if this is related to what you're trying to do, but you can calculate and save variables on the layer itself by using 'custom':

(props to Jordan for pointing this out!)

Nikolay Berezovskiy

Did you mean — share variable from local function to another?

Read the entire post on Facebook