Dhiren Posted January 8, 2018 Share Posted January 8, 2018 Hello, I just started learning Babylon JS and I really loved it. Here I need your help to solve one of my sample development http://dev.alri.in/3d/ which is working well on Desktop & Android, but not working properly on iPhone (6S,7). It is loading but not able to rotate or zoom it. I have replicated the example of import meshes from https://playground.babylonjs.com/ Please let me know what am I missing? Thanks in advance. index.html Quote Link to comment Share on other sites More sharing options...
brianzinn Posted January 8, 2018 Share Posted January 8, 2018 Did you try adding PEP.js to your project (or another polyfill like hand.js)? Also, you're loading cannon and oimo, but you would only need one or none. Dhiren and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Dhiren Posted January 9, 2018 Author Share Posted January 9, 2018 12 hours ago, brianzinn said: Did you try adding PEP.js to your project (or another polyfill like hand.js)? Also, you're loading cannon and oimo, but you would only need one or none. Thanks for your reply. Can you please give me a simple example, as per my code? It will help me to take ahead. Quote Link to comment Share on other sites More sharing options...
brianzinn Posted January 9, 2018 Share Posted January 9, 2018 Place the PEP script in your html head tag as per https://github.com/jquery/PEP. Note the touch-action="none" on the button on that page. You'll probably want that on your canvas and then it should pick up on the iPhone events? Dhiren 1 Quote Link to comment Share on other sites More sharing options...
Dhiren Posted January 9, 2018 Author Share Posted January 9, 2018 3 hours ago, brianzinn said: Place the PEP script in your html head tag as per https://github.com/jquery/PEP. Note the touch-action="none" on the button on that page. You'll probably want that on your canvas and then it should pick up on the iPhone events? Great, it worked. Many Thanks brianzinn 1 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.