How can I pass values from one event to another without using global variables? ie. TouchStart to TouchEnd
Hmm without knowing exactly what you want to do, I'd say something like this: http://share.framerjs.com/4p5azwa2gmmc/
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.
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!)
Did you mean — share variable from local function to another?