terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Ctrl+Mouse scroll changes the font size

Open alabuzhev opened this issue 6 years ago • 5 comments

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.476]
Windows Terminal version (if applicable): No

Any other software? No

Steps to reproduce

Run the attached app, press and hold Ctrl, start scrolling.

Expected behavior

The app receives MOUSE_EVENT_RECORDs and uses them to control the slider.

Actual behavior

The app receives MOUSE_EVENT_RECORDs and uses them to control the slider, but at the same time the host changes the font size, so the intended functionality is effectively unusable.

It does not happen in legacy mode and never happened prior to Windows 10.

There is no way to disable this feature in console settings - "Enable Ctrl key shortcuts" is already off.

UPD: everything above applies to Ctrl+Shift+Mouse Scroll as well. It changes the window transparency and there's no way to disable it.

alabuzhev avatar Dec 01 '19 11:12 alabuzhev

Another unintended consequence is that non-precision touch-pads with momentum can result in the font size being changed unexpectedly.

Step 1: scroll with the touch-pad Step 2: press the ctrl key shortly after you're finished scrolling Step 3: marvel at your newly ginormous or insanely small text

This isn't a concern for many, but in environments with corporate-supplied laptops, which I would expect to be a relatively common deployment scenario for Windows Terminal, it's more likely to have a laptop without a precision touch-pad.

bgshacklett avatar Mar 26 '21 12:03 bgshacklett

@bgshacklett unfortunately, that's true of so many applications. I wish it weren't 😦 but when I scroll in Firefox or Chrome or... well, pretty much any application and then hold down control I get my eyes melted off

DHowett avatar Mar 26 '21 16:03 DHowett

WAIT, CHROME DOESN'T DO IT ANYMORE

IT'S FIXABLE???

DHowett avatar Mar 26 '21 16:03 DHowett

FWIW, Chrome still does it for me.

bgshacklett avatar Apr 07 '21 14:04 bgshacklett

It is happening with any app like webStorm, Chrome, Edge, and Rider. Should it be fixed soon?

esterkaufman avatar Jan 01 '23 23:01 esterkaufman

I happens in "Azure DevOps -> code review" as well. Very annoying issue

artnikbrothers avatar Sep 08 '23 20:09 artnikbrothers

~@alabuzhev I've tried the attached app and the font size does not change for me (Or i misunderstood the issue):~

Slider in Terminal increasing and decreasing value

~The transparency not increasing the value but rather changing opacity is still present though~

Wrong product...

marcelwgn avatar Apr 09 '24 19:04 marcelwgn

@marcelwgn this report is about conhost/openconsole, not WT.

alabuzhev avatar Apr 09 '24 20:04 alabuzhev

So what do I need to watch out for when running the attached project?

Edit: Nevermind, figured it out...

marcelwgn avatar Apr 09 '24 20:04 marcelwgn