Skip to content

Instantly share code, notes, and snippets.

@gagarine
Last active December 14, 2024 17:53
Show Gist options
  • Save gagarine/d313ee6510009b3f3973c6e0929b1e1c to your computer and use it in GitHub Desktop.
Save gagarine/d313ee6510009b3f3973c6e0929b1e1c to your computer and use it in GitHub Desktop.
Reverse Mouse Wheel scroll in Windows 11 (Natural Mode like MacOS)

Reverse Mouse Wheel scroll in Windows 11

Chose between natural mode like MacOS or Windows default mode.

Step 1: Open Windows PowerShell in Administrator Mode.

You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.

Step 2: Copy the following code and paste it in the command line of Windows PowerShell:

$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }

The code above is one-liner PowerShell script. Copy-paste it as-is.

Step 3: It will ask how do you like your mouse to scroll.

Downward wheel motion makes the page...

0 - Move up so you see contents below (Default Mode, Windows behavior)

1 - Move down so you can see contents above (Natural Mode, Mac behavior, reverse mode)

Type the number that corresponds to your scroll preference.

Step 4: Restart your computer.

Your settings will take effect after you restart.

Step 5 (optional)

Give yourself a favor and buy a Mac.

image

Info

Source: https://answers.microsoft.com/en-us/windows/forum/all/reverse-mouse-wheel-scroll/657c4537-f346-4b8b-99f8-9e1f52cd94c2

Copy link

ghost commented Sep 5, 2023

It works great, but when you scroll left and right, it's still in standard direction and not natural mode.
Do you know if there's a way I can change this?
Thanks

@SocietasEvanescentes
Copy link

Just found this https://github.com/jamie-pate/flipflop-windows-wheel/blob/master/bin/Debug/FlipWheel.exe

So funny to see that someone, as of today, was also bothered by this problem LOL

@mariusmarais
Copy link

Knew a one-liner had to exist! Thanks :)

@NathanChannon
Copy link

Legendary! Why on earth isn't this a setting though? If it wasn't for games...

@omaralamoudi
Copy link

Aaaaah, thank you very much. You made my life better 😄

@Markeedoo
Copy link

Bro you rock ! much appreciated !

@justinharbour
Copy link

THANK YOU!!!

@B3rNy2531
Copy link

Thank you very much friend, now I want to change some things on my keyboard to make it the same as Apple.starting with copy and paste.

@cgorshing
Copy link

I use something similar and used the same source.

But I also wanted a way to be selective on which mouse I wanted to change. So I came up with the following script which relies on you unplugging the mouse. So it can compare and see which ones you want to modify.

https://gist.github.com/cgorshing/f89406ff2cc4ffd68d5138ac80e80d0a

@sitavs
Copy link

sitavs commented Jun 26, 2024

This is brilliant, thanks.

@gurkandurukal
Copy link

gurkandurukal commented Sep 25, 2024

Thanks for saving us from the long registry hassle... it works on Windows 10 too.

@kryojenik
Copy link

FYI... As of Windows 11 24H2 there is now a native setting in the mouse control panel to do this... Finally!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment