I want an element to rotate relative to its drag distance from origin. (the farther the drag, the larger the rotation). How would I begin thinking of this issue?
Ah... I get it. That's what dragMove is for.
To remember the "origin" I always do something like layer.originalX = layer.x
I'll use that in my math. You can also do this with layer.originalMidX for example
Great. That helped. Can you explain what .originalMidX does?
The same thing. Its just a custom variabke Name on the layer that you set once to use it later. So at the beginning of your prototype, just save the initial midX into originalMidX so you can use it later
Hey Noam,I've made an example-file for you. If you have any further question, feel free to ask.