DylanD Posted August 24, 2018 Share Posted August 24, 2018 Hello everyone, I am creating a Facebook instant game, when I pressing the screen controls my game. However when I press the screen and move my finger slightly it counts that as my finger coming off the screen. I asked the Babylonjs community, they told me to use pep, which works for everything except Facebook instant games it seems, as it worked on my phone when I ran it through a local server. So my problem only exists when I make a build, upload and play the build. Any ideas on how I can get around this game breaking problem? Heres how I setup pep and my html: <script src="https://code.jquery.com/pep/0.4.1/pep.js"></script> <canvas id="renderCanvas" touch-action="none" -ms-touch-action="none" -webkit-touch-action="none" -khtml-touch-action="none" -moz-touch-action="none" -o-touch-action="none"></canvas> Original post for those wondering: Quote Link to comment Share on other sites More sharing options...
DylanD Posted August 27, 2018 Author Share Posted August 27, 2018 Update: I tried adding draggable="false" to my canvas html and it didn't change anything. Any ideas? Quote Link to comment Share on other sites More sharing options...
DylanD Posted August 27, 2018 Author Share Posted August 27, 2018 Fixed this by adding touch-action: none; to my css file, in my html, body{} 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.