meteoritool Posted August 19, 2017 Share Posted August 19, 2017 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 !!! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 21, 2017 Share Posted August 21, 2017 Only difference I can see is that we are still using PEP 0.4.2 on the playground Can you try with this version? Quote Link to comment Share on other sites More sharing options...
meteoritool Posted August 21, 2017 Author Share Posted August 21, 2017 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 :-/ Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 21, 2017 Share Posted August 21, 2017 I cannot test right now but there is obviously something wrong as it works with PG. Perhaps you can start from PG code and start removing stuff to see what is different. Perhaps in the CSS code? Quote Link to comment Share on other sites More sharing options...
meteoritool Posted August 22, 2017 Author Share Posted August 22, 2017 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 ! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 22, 2017 Share Posted August 22, 2017 Haha! I'm proud of my little hand.js again Good news that it helped you! 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.