proyecto26 / Phaser-Kinetic-Scrolling-Plugin

Kinetic Scrolling plugin for Canvas using Phaser Framework
https://proyecto26.github.io/Phaser-Kinetic-Scrolling-Plugin/
MIT License
131 stars 26 forks source link

Click events helper implemented plus some improvements in scrolling start and scrolling stop break #22

Closed daniel-mf closed 6 years ago

daniel-mf commented 6 years ago

Scrolling startX and startY are redefined when the threshold is reached, that gives an extra smooth scrolling start.

clearMomementTimer was defined to fix problems when doing a "scroll > hold still > release" movement

As seen in the example 3, clicking was very unpractical and buggy, so I implemented the method addClickEvents to help with the clicking.

jdnichollsc commented 6 years ago

woww let me check at weekend, beautiful contribution! 💯

daniel-mf commented 6 years ago

Be sure to check out example 3 with the new clicking helper.

jdnichollsc commented 6 years ago

@daniel-mf thanks for your contribution and sorry for the delay, I added some little validations before to merge to master 👍