Jump to content

Touch hold button and moving


DylanD
 Share

Recommended Posts

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:

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...