Vousk-prod. Posted March 12, 2014 Share Posted March 12, 2014 Heyo guys, For my scene the speed is really too fast when scrolling mouse wheel.Is there a variable we can set to change the zoom factor ? It seems in babylon.arcRotateCamera.js that the only used factor is hardcoded value "120" this._wheel = function (event) { var delta = 0; if (event.wheelDelta) { delta = event.wheelDelta / 120; } else if (event.detail) { delta = -event.detail / 3; } if (delta) that.inertialRadiusOffset += delta; if (event.preventDefault) { if (!noPreventDefault) { event.preventDefault(); } } };but maybe I misunderstand something (and I don't know what delta = -event.detail / 3; is about)... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 12, 2014 Share Posted March 12, 2014 This is clearly a missing feature event.wheelDelta is for IE and Chromeevent.detail is for Firefox ( which do not use same ratio) I've added a new parameter to arcRotateCamera:wheelPrecision Here is a special build only for you http://www.babylonjs.com/babylon.zip The Leftover and Nico 2 Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted March 13, 2014 Author Share Posted March 13, 2014 Many thanks you're really kind ! Quote Link to comment Share on other sites More sharing options...
lery0 Posted May 26, 2017 Share Posted May 26, 2017 Hi, using 3.0 alpha in chrome, trying to tame the zoom factor / speed but i can't really get any effect with arcRotateCamera, I am trying to have a slower mosue wheel zoom as all my world is in a-1,1 range for all coordinates. Any suggestion? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted May 26, 2017 Share Posted May 26, 2017 camera.wheelPrecision = 50; 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.