Bolko Posted May 8, 2015 Share Posted May 8, 2015 this.btnFullScreen.mousedown = this.btnFullScreen.touchstart = Main.toggleFullScreen();gives me this error:Failed to execute 'requestFullScreen' on 'Element': API can only be initiated by a user gesture.Do I have to put a DOM Element over PIXI with el.addEventListener("keydown" ... ? Quote Link to comment Share on other sites More sharing options...
Bolko Posted May 8, 2015 Author Share Posted May 8, 2015 Forget it, was my mistake! this.btnFullScreen.mousedown = this.btnFullScreen.touchstart = Main.toggleFullScreen () ; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.