Jump to content

Button on point up observable on mobile


DylanD
 Share

Recommended Posts

Hey everyone, I have a strange problem, when I am playing my game on mobile and I hit and hold a Gui button then slide my finger off of it, the moment I start to slide my finger it seems to call the onPointerUpObservable.  This doesn't happen on my computer, and I can't even recreate it in playground for some reason.  Im stumped at what could be causing this.

Here is a playground to illustrate what I have, but not the exact problem as even in the playground on my phone it would not call onPointerUpObservable:

https://www.babylonjs-playground.com/#WYNFSG#2

Any ideas what could be going wrong?

im not using hammerjs or any touch plugin since they're only Gui buttons and nothing else.  Which seems to work fine on playground.

Im not even sure how to label this problem properly.

Link to comment
Share on other sites

Oh damn, ok just read that the problem is not being simulated in the PG.  My bad, well it works on a pixel 2 as well (which I guess is irrelevant now, lol)

Let me know when its recreated.

Also check which versions of the libs you are using on your game version.

Link to comment
Share on other sites

Just now, Pryme8 said:

Oh damn, ok just read that the problem is not being simulated in the PG.  My bad, well it works on a pixel 2 as well (which I guess is irrelevant now, lol)

Lol.  Thanks though, hopefully I can get the problem recreated XD

Link to comment
Share on other sites

Some more info:

I'm using this in my html:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<script>document.addEventListener('contextmenu', event => event.preventDefault());</script>
 
Link to comment
Share on other sites

Bad news, I built it and tried it through messenger and the fix doesn't work.  Now I bet it is because Facebook is trying to move, or something, idk.

Maybe I should install a packaged version of pep instead of calling the link from the html....

Maybe pep is not compatible with whatever Facebook uses as a browser?

Link to comment
Share on other sites

PEP is all client-side, only the file is downloaded from a server.  I haven't looked at all into FB games - there is a forum on this website specific for FB games, though.  This problem does not appear to be babylonjs specific, so you probably need some FB expertise.  I have never installed any facebook App, but I have used their Karmel browser in GearVR and it was not the best experience.  Good luck!

Link to comment
Share on other sites

22 minutes ago, brianzinn said:

PEP is all client-side, only the file is downloaded from a server.  I haven't looked at all into FB games - there is a forum on this website specific for FB games, though.  This problem does not appear to be babylonjs specific, so you probably need some FB expertise.  I have never installed any facebook App, but I have used their Karmel browser in GearVR and it was not the best experience.  Good luck!

Thanks I will check there!

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...