phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 491 forks source link

click events not working after video exitfullsreen on ipad #669

Open amitsingh17051 opened 4 years ago

amitsingh17051 commented 4 years ago

I have show video on canvas. I somehow figure out how to do video fullscreen but another problem came. When we exit the fullscreen canvas all pointerdown event stop working on ios devices.

amitsingh17051 commented 4 years ago
$('#video').bind('webkitfullscreenchange mozfullscreenchange fullscreenchange', function(e) {

                        var state = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
                        var event = state ? 'FullscreenOn' : 'FullscreenOff';
                        // Now do something interesting
                        // alert('Event: ' + event);   

                            return false;

                    });
samme commented 4 years ago

Could you try phaser-test.js.gz to see if it makes a difference?

samme commented 4 years ago

Does this reproduce the problem? https://codepen.io/samme/pen/JjYwKML