DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: For the love of all that is holy stop the ctrl+MouseWheel text scaling - SOLVED  (Read 12,048 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
I am CONSTANTLY, and I mean many times per day, inadvertently changing the scaling of text in all manner of applications (especially web browser but also text editors), by scrolling the mouse wheel while the control key is held down.
Is there a way to turn off this evil behavior?
« Last Edit: February 19, 2021, 11:54 PM by mouser »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
What is it you want / expect to happen (or is it that you want to scroll, and inadvertently have the Ctrl key pressed from last use of same ?)

If there is desired behaviour (as opposed to no behaviour :p) could this be implemented via AHK? [that directed at the AHK specialists...]
Tom

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
The problem is that I have a new logitech mouse, which has momentum on the scroll wheel, so essentially the scroll wheel sometimes keep moving in the direction i scroll it for a couple of seconds.  So sometimes I will spin the scroll wheel and while it's still spinning I will go to do something that requires me to press the control key, and then all of a sudden I've changed the text font size from 10 to 1 or from 10 to 1000..

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Quote
How do I stop my mouse from resizing?

Press Start button on the keyboard, type Mouse & Touchpad settings and select the top most search result. From the window click on Additional mouse option. Click on the Device Settings tab and click on Settings button. From the left side panel, click Pinch Zoom option and uncheck the box Enable Pinch Zoom.23. sep. 2016

-not tested by me

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
The problem is that I have a new logitech mouse, which has momentum on the scroll wheel, so essentially the scroll wheel sometimes keep moving in the direction i scroll it for a couple of seconds.

What's the model?

Just so I know never to buy it :)
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
MX Master 3

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
A bit of AutoHK to apparently fix it:
https://answers.microsoft.com/en-us/windows/forum/windows_10-desktop/disable-ctrl-mouse-wheel-scrolling-zoom-in-windows/d331fdab-8d5f-41ca-bf0f-d985bfdd5a59
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
AHK (and airvine2 the person who made that ahk post) to the rescue! Thanks for finding that 4wd.
So now I just need to tweak this scipt so that I can still do Ctrl+Mousewheel when I want to.. perhaps by remapping Ctrl+Alt+Wheel to send Ctrl+Wheel (actually it looks like Ctrl+Alt+Wheel zooms the size also, so maybe as long as the AHK script doesn't catch both it's all good).

EDIT: Works perfectly, no editing needed.  Ctrl+MouseWheel scroll is disabled, but I can trigger it when I need to with Ctrl+Alt+Wheel.  This solution is perfect since Ctrl+Alt is almost never used by me, so it's not something I will accidentally hit while trying to do something else the wheel is still free spinning.

Awesomeness -- I should have asked this question weeks ago.  DonationCoder forum (and AHK) to the rescue!!  :-* :-* :-* :-* :-* :-* :-* :-*
« Last Edit: February 16, 2021, 01:46 AM by mouser »

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Is there a way to turn off this evil behavior?

Okay, I've opened the "Holy Stop" repository to work on a solution that blocks the events based on a bool/flag + a KB/mouse hook.

-

Let's call the boolean "blockScaling".

Monitor:

A: Mouse wheel scroll, no control/Ctrl key.
B: Ctrl keydown, no mouse wheel.
C: ctrl+MouseWheel.
D: Ctrl keyup, no mouse wheel.


PSEUDO:

A, then C: blockScaling = true;
(Assume momentum scroll)

B: blockScaling = false;
(Assume manual keypress / intent)

D: blockScaling = true;
(Assume end of user intent)

IF ctrl+MouseWheel AND blockScaling = false then
    ALLOW ctrl+MouseWheel
ELSE
    BLOCK ctrl+MouseWheel

---

The idea being to ENSURE you have clicked CONTROL down before allowing the passing/processing of ctrl+MouseWheel for regular text scaling.

When it's the WM_MOUSEWHEEL message with no modifier, disable it until next manual intent on Ctrl keydown.

This can work, so it's worth a try for a February release :)

Cheers! :Thmbsup:
« Last Edit: February 19, 2021, 05:36 AM by publicdomain »

ich thys

  • Participant
  • Joined in 2020
  • *
  • Posts: 52
I'm glad I saw this. Been having trouble with my vision and new laptop screen displaying text a little smaller than I can comfortably read without squinting. Your problem is my solution, in a sense. I've tried your ctrl plus mouse wheel, and so far it works to enlarge text in Brave and Edge (which seems to stay that way until deliberately changed), as well as MS Word 2003 (which reverts with file switching).
My plain Jane mouse; Amazon Basics 3-Button USB Wired Computer Mouse (Black).
Even better yet, the browsers don't add an unwanted bottom scroll bar in the process; they just make text more readable. Thank you.

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
nice! same complaint here, same mouse.

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
I'm glad I saw this. Been having trouble with my vision and new laptop screen displaying text a little smaller than I can comfortably read without squinting. Your problem is my solution, in a sense. I've tried your ctrl plus mouse wheel, and so far it works to enlarge text in Brave and Edge (which seems to stay that way until deliberately changed), as well as MS Word 2003 (which reverts with file switching).
My plain Jane mouse; Amazon Basics 3-Button USB Wired Computer Mouse (Black).
Even better yet, the browsers don't add an unwanted bottom scroll bar in the process; they just make text more readable. Thank you.

There's also the standard hotkeys, Ctrl++, Ctrl+-, Control+0 ... Zoom in, zoom out, and zoom 100%.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

ich thys

  • Participant
  • Joined in 2020
  • *
  • Posts: 52
I'm glad I saw this. Been having trouble with my vision and new laptop screen displaying text a little smaller than I can comfortably read without squinting. Your problem is my solution, in a sense. I've tried your ctrl plus mouse wheel, and so far it works to enlarge text in Brave and Edge (which seems to stay that way until deliberately changed), as well as MS Word 2003 (which reverts with file switching).
My plain Jane mouse; Amazon Basics 3-Button USB Wired Computer Mouse (Black).
Even better yet, the browsers don't add an unwanted bottom scroll bar in the process; they just make text more readable. Thank you.

There's also the standard hotkeys, Ctrl++, Ctrl+-, Control+0 ... Zoom in, zoom out, and zoom 100%.
Thank you. By the way, do you or anyone know the name of that program that keeps Desktop icons neatly arranged the way one wants it to stay?

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Thank you. By the way, do you or anyone know the name of that program that keeps Desktop icons neatly arranged the way one wants it to stay?

Only one I've used is DesktopOK, doesn't keep icons in position but it does allow you to save/restore their positions.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

ich thys

  • Participant
  • Joined in 2020
  • *
  • Posts: 52
Thank you. By the way, do you or anyone know the name of that program that keeps Desktop icons neatly arranged the way one wants it to stay?

Only one I've used is DesktopOK, doesn't keep icons in position but it does allow you to save/restore their positions.
Yes, that's the one. Didn't realize it can't  keep position, but at least it can save/restore position.

edit: For Windows x64 looks like the extracted subfiles are all titled in Slavic or something.
« Last Edit: February 22, 2021, 05:17 PM by ich thys »

Original address: https://www.donationcoder.com/forum/index.php?topic=51086.0