Hey Guys,Can someone please help me with the "List Sorting" example that is made available by Benjamin Den Boar on the Framer website?
I didn't think that copy+paste into a new/empty Framer file would render the code incompatible. I've spent a week trying to get it to work with no avail. Thanks guys, and thank you Benjamin for the example!
Hi Nik, my guess here is that copy and paste from the web is giving you a difference in indentation. That will break the script fairly easily.
Thanks for your reply Marcelo, but unfortunately that is not the case. It's really weird - it's as though the example is pre-compiled on an old version of Framer. Copy+Paste into a fresh file shoots me with syntax and null pointer errors. (I'm not sure if those are the correct terms).
Here's a fixed version: http://share.framerjs.com/pt8x1bj42s6k/
The reason it breaks is because the arguments in the event callback have been altered. Instead of (event, layer) you'll now receive (event, draggable, layer). This example wasn't updated yet, sorry for the inconvenience.
Yes, Floris I was going to write that I read the mentions on this before. I just don't trust copy from web editors anymore ;)
Guys, you are the best. It seems to have solved the issue! I'm overwhelmed with joy. :)