ozRocker Posted June 12, 2018 Share Posted June 12, 2018 On iPhone when you move the camera view with 1 finger it will also drag around the viewport (there's a workaround to this so its not a problem). But when you use 2 or more fingers it will pan the camera view yet the viewport stays in place. That's probably how its meant to behave, but what I want is for 3 finger drag to move the viewport around. The reason being, if this is on a mobile device and the canvas takes up the whole viewport I want users to be able to move it out of the way (scroll up or down) via 3 fingers. Is there somewhere in the babylon.js code where I can change the behaviour for the 2+ finger drag? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 12, 2018 Share Posted June 12, 2018 Hello you can change the behavior of camera input if you want doc: http://doc.babylonjs.com/how_to/customizing_camera_inputs The camera touch input: https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/Inputs/babylon.freeCameraTouchInput.ts 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.