dsman Posted July 1, 2015 Share Posted July 1, 2015 Compared to mouse drag events on desktop browser, babylon camera seems to be much more (2x or 3x) sensitive on mobile device when using touch/swipes. This is probably because when we swipe by finger over the mobile phone screen , we cover 80% area of screen normally in one swipe. While when doing by mouse in browser, in drag we usually cover 20-30 % screen area. So I am guess this difference is making camera more sensitive in mobile device when touch is used. Is there anyway we can reduce sensitivity only for mobile device . May be in hand.js somewhere ? Or we have to detect type of device and then change camera.speed accordingly ? Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 1, 2015 Share Posted July 1, 2015 I think you can play with camera.pinchPrecision (default is 2) Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted July 2, 2015 Share Posted July 2, 2015 pinchPrecision is a factor related to zooming with pinch gesture only, not rotating camera... Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted July 2, 2015 Share Posted July 2, 2015 To change camera sensitivity you have to change camera.angularSensibility. You can detect device type to change that value for mobile only,or extend ArcRotateCamera and change behaviour in _onPointerMove and _onMouseMove or detect events and change angularSensibility according to event.pointerType (can be event.POINTER_TYPE_MOUSE, event.POINTER_TYPE_PEN, or event.POINTER_TYPE_TOUCH) Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 2, 2015 Share Posted July 2, 2015 You're right, my bad... I should not answer topics at the end of the day Quote Link to comment Share on other sites More sharing options...
dsman Posted July 2, 2015 Author Share Posted July 2, 2015 @Vous-prod I will try those options. Thanks for answer. 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.