phaser-scrollable icon indicating copy to clipboard operation
phaser-scrollable copied to clipboard

getBounds() fails on iOS, which makes touch scrolling fail.

Open jbum opened this issue 7 years ago • 1 comments

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.

jbum avatar Oct 30 '18 00:10 jbum

Related - the masking methoddoesn't seem to work in webviews in either iOS or Android.

jbum avatar Oct 30 '18 18:10 jbum