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

What is Framer? Join the Community
Return to index
JL Flores Mena
Posted Nov 07 - Read on Facebook

Hey Framer team. I missed today's Seattle meetup to focus on fixing a bug, but I hope what I found today helps someone else.

There's a new issue with the new animation engine... I'm sure I'll dig these changes in the future, but right now the new animation api is causing me quite a number of issues.

Here's what I found:
There seems to be a bug with the 'momentum' attribute of draggable elements. If the momentum is running, it will ignore all other .animate instructions.

I uploaded a demo. And I recorded a video because it's difficult to explain. Drag the gray square below the pink line, and release it leaving it to slide with momentum. See how the momentum comes back *after* the animate instruction. I'm 100% sure this is not what happened before the update.

If you know of a quick fix please let me know.
Thanks!

http://share.framerjs.com/0xbilbywjfqe/

6 Comments

Krijn Rijshouwer

That's curious! Niels van Hoorn can you take a look? I think you can fix this by setting the draggable's momentum property to false.

JL Flores Mena

Krijn Rijshouwer Just to clarify, I need to have the 'momentum' attribute set to true. The momentum shouldn't overlap with the animate function. I have some prototypes that used to work as expected before the update, and now those same files show this bug.

JL Flores Mena

*bump. Hey Niels & team. Any updates on this bug? I have one part of a prototype I'm working on on hold because of this issue. I haven't found a way to fix it.

Jacopo Moretto

does it solve your problem?

Niels van Hoorn

This was indeed a bug that caused simulations not to be cancelled when starting an animation. I've fixed in in the Framer Library master branch, so you should be able to use it in your project by choosing "Update Framer Library" from the file menu.

Niels van Hoorn

I'm sorry this took a while to fix, it wasn't trivial to debug and write a test for

Read the entire post on Facebook