Dos Posted May 3, 2018 Share Posted May 3, 2018 Hi there, Following the docs, I added PEP on my project to support touch events (and polyfill Safari by the way). But I cannot manage to get the arcRotateCamera to properly react to touch events. When trying playground demos, it works as expected but on my project, the inputs seem to move a bit then stop responding. Sometimes it zooms in or out, sometimes it pans a little bit then stops. Am I missing something here ? This is how I init my camera : this.camera = new BABYLON.ArcRotateCamera( 'camera', 1.2, 1.3, 180, new BABYLON.Vector3(0, 40, 0), this.scene ) this.camera.attachControl(this.canvas, true) Is it possible I miss something obvious here ? PS: I also tried by removing any event listener just initing a scene in BJS with no success. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2018 Share Posted May 3, 2018 Hello! did you make sure to add an attribute to your canvas like here: https://github.com/BabylonJS/Babylon.js/blob/master/Playground/index.html#L426 (touch-action=none) Dos 1 Quote Link to comment Share on other sites More sharing options...
Dos Posted May 4, 2018 Author Share Posted May 4, 2018 I feel so dumb. This is what I was missing! Thank you Deltakosh! Quote Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2018 Share Posted May 4, 2018 No worry! 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.