"Swipe to dismiss" gesture disabled on iOS

Hi I find out a problem that a Phaser page seems could not be closed (or back to last history) by the swipe gesture in iOS Safari.

In short, the system-level gesture-based swipe-to-go-back function on iOS is not working.

p.s. This issue only happens on iOS, the swipe-to-go-back gesture feature works well on Android.

How to resolve this? Thx.

You can use

new Phaser.Game({
  input: { touch: { capture: false } }

But that will also allow touch panning I think. Maybe CSS touch-action can adjust.

1 Like