# How to increase the speed of zoom in/out of scroll wheel

**URL:** <https://forum.babylonjs.com/t/how-to-increase-the-speed-of-zoom-in-out-of-scroll-wheel/16494>\
**Category:** Questions\
**Tags:** material\
**Created:** [December 10, 2020, 8:13am UTC](https://forum.babylonjs.com/t/how-to-increase-the-speed-of-zoom-in-out-of-scroll-wheel/16494 "2020-12-10T08:13:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [December 10, 2020, 8:13am UTC](https://forum.babylonjs.com/t/how-to-increase-the-speed-of-zoom-in-out-of-scroll-wheel/16494/1 "2020-12-10T08:13:38Z")

</div>

Hello

I have an issue with the mouse scroll wheel and I can not increase the speed of it. I try to use following code in my Model but it doesn’t work:  
camera.inputs.removeByType(“FreeCameraMouseInput”);  
camera.inputs.addMouseWheel();  
camera.wheelPrecision = 0.00000001;  
is it possible help me know how can I do ?  
here is my PG: [https://playground.babylonjs.com/#X2ULQN#46](https://playground.babylonjs.com/#X2ULQN#46)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [December 10, 2020, 4:45pm UTC](https://forum.babylonjs.com/t/how-to-increase-the-speed-of-zoom-in-out-of-scroll-wheel/16494/2 "2020-12-10T16:45:56Z")

</div>

Pinging @PolygonalSun our input master

(note: camera.wheelPrecision does not exist on UniversalCamera)

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [December 10, 2020, 5:32pm UTC](https://forum.babylonjs.com/t/how-to-increase-the-speed-of-zoom-in-out-of-scroll-wheel/16494/3 "2020-12-10T17:32:30Z")

</div>

If you want to change the mouse wheel zoom speed, I’d recommend using the following line

```auto
camera.inputs.attached.mousewheel.wheelPrecisionY = 100;

```

To change any inputs on a camera, you’ll first need to reference the desired input from the _attached_ array for a camera’s given inputs (`camera.inputs.attached`). All wheel precision is handled on a per-axis basis but for the most part, you’ll probably only need to change `wheelPrecisionY` as that is the default axis controlled by a mouse wheel. The default value is 3 so if that isn’t moving enough, you should be able to use a bigger number (100 worked well for me when testing on your PG).

---

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [December 11, 2020, 7:09pm UTC](https://forum.babylonjs.com/t/how-to-increase-the-speed-of-zoom-in-out-of-scroll-wheel/16494/4 "2020-12-11T19:09:04Z")

</div>

> [@Arash\_Bagheri](#):
>
> [https://playground.babylonjs.com/#X2ULQN#46](https://playground.babylonjs.com/#X2ULQN#46)

Hi @PolygonalSun  
Thanks a lot for helping me. it’s great. 🙏 🙏 🙏

---

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [December 11, 2020, 7:09pm UTC](https://forum.babylonjs.com/t/how-to-increase-the-speed-of-zoom-in-out-of-scroll-wheel/16494/5 "2020-12-11T19:09:32Z")

</div>

Thank you so much. 🙏 🙏 🙏
