koenbok / Framer

Framer - Design Everything
https://framer.com
MIT License
5.85k stars 477 forks source link

Scroll events are missing #323

Closed joe-howard closed 8 years ago

joe-howard commented 8 years ago

The ScrollComponent only has onScroll defined. The documentation for Scroll Events mentions onScroll[Start | End] and onScrollAnimationDid[Start | End] event helpers. It looks like the definitions for the shortcuts are missing from Layer.coffee.

scroll = ScrollComponent.wrap (layerA) scroll.onScrollStart (event) -> print "Start"

scroll.onScrollEnd (event) -> print "End"

As a workaround, Events.ScrollEnd and friends still work

nvh commented 8 years ago

This seems to be fixed in the latest Framer Library. If you have more to add here please feel free to create a new issue.