Zoom speed with scroll wheel

Hello,

When I am trying to zoom in/out via my mouse’s scroll wheel while looking at a scene in the editor it is very slow. To give you an idea, if I have a camera set to size=11 it takes about 40 turns of the scroll wheel to zoom into the camera icon (of said camera) such that the icon starts to disappear.

Configuration/context:

  • 2D project.
  • Running on Linux.
  • I’ve tried two mice and my trackpad; this did not seem to make the problem better or worse.
  • Scrolling in any other application, e.g. firefox or chrome, the scrolling has a very comfortable and natural speed.

Is there any way I can adjust the rate at which I can zoom in/out of a scene with my mouse’s scroll wheel? I’ve seen plenty of posts online letting people know they can focus-in on an object by pressing ‘F’, but I would really like an answer to this specific question (if it exists).

Thanks,

1 Like

Try selecting an object in the Scene, then with the mouse over the Scene, press F … this should focus on it and often fixes weird frustum issues that impair scrolling.

Otherwise it might be an OS-level mouse sensitivity issue that isn’t playing well with Unity.

26 Likes

Thanks for the reply.

Unfortunately pressing ‘F’ as you’ve suggested has no effect w.r.t. fixing the zooming issue.

In terms of an OS-level issue, I’m not even sure how one could verify that one way or the other. I’ve tried scrolling with three different input devices, and all three of them scrolling works as intended in other applications (I’ve tested Firefox, Chrome, and VS Code), but not within Unity.

Is there some way to enable some “advanced” debugging to begin to dig-in to what may be going on?

1 Like

I’ve found no way to modify the “scroll zoom” speed in Unity editor at all. Luckily there are two other ways to “Zoom” in Unity that are a bit more adjustable:

  • Hold Alt + Right Mouse button and move the mouse.
  • Use “flythrough mode”. Hold right click and use WASDQE to move around. W will move forward which is effectively the same as zooming. You can modify the speed at which you move in flythrough mode by scrolling the mouse wheel while in flythrough mode. This can help you make very fine adjustments to the camera position
  • The camera speed from flythrough mode can also be modified from the scene-view camera settings dropdown menu.

I know these aren’t quite the solution to your problem, but Unity has a long-standing issue with the standard mouse-wheel zoom being too sensitive or not sensitive enough when certain objects are selected that I’ve never seen them really tackle properly. With these tools above I’m usually able to work around it.

See Unity - Manual: Scene view navigation

12 Likes

Thanks to both of you for the answers! This will have to do since there doesn’t seem to be a way to tackle the problem directly.

Given you’re running under Linux, it seems odd there isn’t just some cheesey driver setting you can change to greatly magnify (or minify) the mouse control when a particular process has focus.

Awsome, got mine fixed. (Windows)

3 Likes

I have the opposite problem. Zoom via scroll wheel is insanely fast in Unity scene view. I need to zoom about 20 times before I randomly get it to the level I want and then 5 minutes later Unity resets the zoom to something unusable and I need to do it agiain. The scroll wheel works fine in the rest of Unity and all other apps. I’ve seen complaints about this since 2010 but no answer. Alternatively, once I randomly get Zoom correct, is there a way to lock it so Unity doesn’t break it again?

Thanks so much

1 Like

it work for me thank you
just slesct an object, press “F” on it and then it goes back to normal

The trick of using “F” works well IF you’re using gameobjects. If the items in your scene are entities, you can’t select them in the hierarchy or the scene view so you’re screwed. Your only recourse is the solution suggested by @PraetorBlue .

yeb, you can hold right mouse and scroll to change speed zoom to an object

Thanks …F worked

Unfortunately, the tricks to modify navigation speed do not apply to 2D mode. In particular, scrolling with the mouse wheel to zoom is unaffected. The only reliable way I found to zoom quickly to an arbitrary scale (so without using focus F) without having to scroll a lot is a hardware solution: use a mouse with a “free wheel” system and let your wheel scroll freely for continuous zoom, then stop it when you’re done…

I know this is an old post but for those who are having this maddening problem (like I had for the longest time) a quick depression of the middle scroll wheel instantly fixes the zoom!

1 Like

Wow, you’re right! I never knew that. That’s especially useful in DOTS programming because double-clicking on an entity in the scene or selecting the entity and pressing “F” does not move the camera to the entity like it does with game objects.

Sooo… I’m using 2022.3.8 and now the middle mouse button does nothing. What happened? I used to use it constantly to “reset” the zoom factor. In DOTS the “F” key is useless because there are no game objects, so I need that middle mouse button to work like before. I don’t know what changed. Is there setting for that somewhere?

Okay so I figured out the situation… IF the subscene is closed in the editor, then the middle mouse button does nothing. If it is open, then it correctly readjust the zoom percent. Why that should make a difference, I have no idea. It’s annoying and I hope it gets fixed. Trying to find and match objects in the inspector hierarchy with the view is difficult enough as it is with entities because it’s missing a lot of connections that game objects have. So this camera problem just makes it that much more difficult.