Skip to content

Instantly share code, notes, and snippets.

@gagarine
Last active October 10, 2024 02:11
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

@olsenlid
Copy link

olsenlid commented Mar 6, 2023

Literally just logged in to my account to say, THANK YOU!!!

Been doing this manually a few times now, and it's driving me mad that they removed such a simple option that they very much could keep.

Now, to go even further, maybe you could make this into a .bat file or something that you could just double click to run, to enable reverse scrolling. And a prompt at the end of the script if you want to reboot.

Again, many, many thanks!

@gagarine
Copy link
Author

gagarine commented Mar 7, 2023

Thanks <3. I could create a 1$ paid app hahaha

@olsenlid
Copy link

olsenlid commented Mar 9, 2023

Thanks <3. I could create a 1$ paid app hahaha

I'd buy it for sure. I've not seen this done anywhere else. The other guides are just pointing to the same registry methods.

@thereddestdog
Copy link

THANK YOU for this script! Super handy.. However, no need to restart, just need to disconnect/reconnect your mouse to take effect

@nicknormal
Copy link

Also logged in to say THANK YOU. Also would happily donate - the other methods I tried required editing the Registry, and then the system reset itself (after an update? not sure) which is beyond maddening. Thanks for making it easy.

@smarianimore
Copy link

u da real MVP

@faranjaved
Copy link

You are a legend !

@adambahyn
Copy link

THANKKKKK YOUUUUUUUU

@cesarvarela
Copy link

The fact that this is not an option is baffling.

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.

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