Rajkumar Posted April 15, 2016 Share Posted April 15, 2016 Hi All, I would like to use babylonjs from a touch device. Zoom in and zoom out by means of pinch works in a touch device (mobile/ tablet) http://www.babylonjs-playground.com/#AMEB6#0 Panning works on pc by holding CTRL+Drag. What is the best way to implement panning on a touch device ? one touch drag would rotate the scene. Will it be possible if I want to use 2 touches and drag to pan ? Regards Rajkumar Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 15, 2016 Share Posted April 15, 2016 Hey, first of all you can turn off touch to rotate by not calling camera.attachControl. If you want to add panning with 2 fingers, I recommend adding an event handler for pointerDown event. A good read: https://blogs.msdn.microsoft.com/davrous/2015/08/10/unifying-touch-and-mouse-how-pointer-events-will-make-cross-browsers-touch-support-easy/ 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.