Describe the bug
On iOS browser, the option to allow zooming should be disabled to prevent visual bugs and softlocking the player, but safari seems to ignore this.
To Reproduce
Steps to reproduce the behavior:
- Open openfront.io
- Try to pinch to zoom
- you can zoom in
Expected behavior
you should not be able to zoom
Screenshots
Smartphone (please complete the following information):
- Device: iPhone
- OS: iOS10+ probably
- Browser probably all
Solution
According to a stackoverflow post the solution is to overwrite gesturerestart
document.addEventListener('gesturestart', function (e) {
e.preventDefault();
});
Describe the bug
On iOS browser, the option to allow zooming should be disabled to prevent visual bugs and softlocking the player, but safari seems to ignore this.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
you should not be able to zoom
Screenshots
Smartphone (please complete the following information):
Solution
According to a stackoverflow post the solution is to overwrite gesturerestart