Skip to content

Instantly share code, notes, and snippets.

@gagarine
Last active February 21, 2025 14:25
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

@kryojenik
Copy link

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

@smarianimore
Copy link

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

And since I was using this script, now the setting is "messed up": in windows option I see "the macOS" configuration, but the mouse is actually in the "old Windows" configuration..
I tried to play around both settings (Windows native and this script) to make them "agree", but to no success...
Can somebody help me to "reset" this script and rely on Windows new option?

@iilkevych
Copy link

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

And since I was using this script, now the setting is "messed up": in windows option I see "the macOS" configuration, but the mouse is actually in the "old Windows" configuration.. I tried to play around both settings (Windows native and this script) to make them "agree", but to no success... Can somebody help me to "reset" this script and rely on Windows new option?

remove your mouse and reconnect

@smarianimore
Copy link

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

And since I was using this script, now the setting is "messed up": in windows option I see "the macOS" configuration, but the mouse is actually in the "old Windows" configuration.. I tried to play around both settings (Windows native and this script) to make them "agree", but to no success... Can somebody help me to "reset" this script and rely on Windows new option?

remove your mouse and reconnect

I tried, didn't work.
Hope somebody can figure this out as I'm trying all the combinations of settings but to no luck to date :/

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