phaser-scrollable
phaser-scrollable copied to clipboard
getBounds() fails on iOS, which makes touch scrolling fail.
Around line 120, in the beginMove function, there is a line that begins
if (this.maskGraphics.getBounds().contains...
That checks the bounds of the maskGraphics. On iOS getBounds() returns undefined, and this kills touch scrolling. If I remove the bounds check, I can scroll. I've noticed that on Android, the bounds of the mask don't seem to be constrained on the top edge properly (it goes all the way up to zero) - perhaps related... Perhaps worth checking the behavior of the plugin on a mobile device, versus desktop.
Related - the masking methoddoesn't seem to work in webviews in either iOS or Android.