terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Request: Setting to disable zooming with ctrl+mousewheel

Open JonnieCache opened this issue 3 years ago • 18 comments

I would like a setting to disable the zooming/font size changing when scrolling the mousewheel with ctrl held down. The motivation for me is that I have a mouse featuring a clickless wheel with "momentum," which means that windows often get spammed with extraneous wheel events when the wheel is still moving very slightly, resulting in my text getting shrunk down to the smallest possible size when I press ctrl, requiring a reset with ctrl+0.

I know this sounds insane/awful and you're probably thinking I should get a different mouse, but in fact the only annoyance is from wheel zooming in the browser and in the terminal. Regardless of any of this it seems like a generally useful feature. Firefox lets me disable it, and a matching setting in the terminal would be much appreciated.

The ideal implementation would be exposing the wheel events in the Actions pane of configuration, but if this presents architectural challenges a simple toggle in the Interaction pane would of course suffice.

Thanks muchly.

JonnieCache avatar Nov 08 '21 16:11 JonnieCache

note to self: this is not #3990, this is a subset of #1553.

I'll leave this open as an atomic task that's part of the #1553 "scenario". Thanks!

zadjii-msft avatar Nov 08 '21 16:11 zadjii-msft

This is indeed very annoying feature. On my laptop, I often find myself zooming in or out accidentally when operating a shell that requires the use of ctrl button.

mkorkalo avatar Jun 15 '22 08:06 mkorkalo

I want to second this, as I've had many an accidental zoom when scrolling up/down with a touchpad. (Doesn't even require the CTRL key to be held down, which is even more annoying.)

OddKMS avatar Nov 29 '22 12:11 OddKMS

Any news about this? Completely annoying.

schiorean avatar Mar 15 '23 11:03 schiorean

2024 update? its really annoying.

i face it every other day. please give us a way to disable zoom-in.

my fonts become really small & then i have to set it to perfect again.

a simple disable boolean would do.

deadcoder0904 avatar Feb 08 '24 13:02 deadcoder0904

Been wishing for this since I started using WT, and looks like I will continue wishing for this. Working in a terminal and accidentally graze the touchpad and suddenly I'm looking at a terminal with a 2 point font. I don't need or want to change my font size on the fly and I imagine there are keyboard shortcuts for this anyway so being able to disable the scroll-zoom would be wonderful.

ChrisHeerschap avatar May 16 '24 14:05 ChrisHeerschap

It may take a while longer for work on #1553 to be started, and I'd be happy to implement a hotfix for this (for instance with an experimental setting). But can anyone explain how you disable Ctrl+Scroll zooming in Firefox/Chrome/Edge or Visual Studio? In particular the former 3 don't seem to have any keybindings at all, and for the latter I can't find any binding that got Ctrl+Scroll. I'd like to know how other applications do it to have a reference.

lhecker avatar May 16 '24 15:05 lhecker

Have the designer ever used Teams on a laptop? It's freaking absurd that this issue takes years to fix, and yet Teams has been focusing useless features such as metauniverse meeting

Ayke avatar Jul 09 '24 15:07 Ayke

Took a quick look, the pertinent code seems to be (as of now) on line 504 in src/cascadia/TerminalControl/ControlInteractivity.cpp:

else if (ctrlPressed)
        {
            _mouseZoomHandler(delta);
        }

Could probably hook this to settings?

AdamDanischewski avatar Aug 04 '24 05:08 AdamDanischewski

Could probably hook this to settings?

That would be fantastic, this unintended zoom happens to me regularly. I'd be perfectly happy with removing that code altogether.

ChrisHeerschap avatar Aug 09 '24 11:08 ChrisHeerschap