Jump to content

onPickDownTrigger problem with iOS


meteoritool
 Share

Recommended Posts

Hi everyone,

I need help on a problem I can't seem to solve.

Here is a simple scene : https://www.babylonjs-playground.com/#4F54K3
There is a simple square with action manager, onPickDownTrigger, the square becomes red, and onPickUpTrigger it becomes green.
This works on my computer as well as on iOS webview.

But when I try this on my own code, it doesn't work anymore on iOS (it works well on my pc Chrome, even with "device mode" on). The onPickDownTrigger is ignored, only onPickUpTrigger seems to work ... Here's a page I've put up :
http://www.orbis-somnium.com/production/zBugs/170819/bugIndex.html
 

Can anybody help me with this ? I don't understand why it works well with the Playground but not with my own webpages !!! Drives me nuts lol
Thank you very much for any help !!!

 

Link to comment
Share on other sites

I tried with 0.4.2 and the same bug occurs, I even try without PEP at all, still the same behavior ...

What I have noticed is that :
-if I register just onPickDownTrigger it becomes onPickUpTrigger
-if I register just onPickUpTrigger things work as they should

-if I register onPickDownTrigger and onPickUpTrigger, pickdown action is triggered on pick up and pickup action doesn't occur ...

Do you experience the same bug on your mobile device with my page ?
I don't understand, it all seemed to work before :-/

Link to comment
Share on other sites

Hello,

So I started from the Playground and downloaded it as a ZIP to get the code.
I rewrote my own code to have the exact same structure and CSS, but it didn't work...
I noticed the Playground doesn't use PEP polyfill but rather "hand.minified-1.2.js", so I tried with hand.js and things work now !

This is great news for me, but since hand.js is supposed to be discontinued in favor of PEP, other people might run into this issue sooner or later ...
Thank you a lot ! ;)

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