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

What is Framer? Join the Community
Return to index
Jason Lang
Posted Jan 30 - Read on Facebook

Hey there! I'm fearful that I've missed something very obvious, but I can't seem to get calculateVelocity to print any values when I'm dragging a draggable layer.

Check out my demo:

What have I missed?


Marcelo Eduardo Oliveira

Hey Jason Lang, in order to print the velocity, it needs to be in an event:

Now, every time the "touchmoves" fire, the velocity is calculated and printed correctly!

Hope this helps!

Jason Lang

Thanks! I basically ended up here later on. It's been a while since I've written JS :-)

Read the entire post on Facebook