In macOS there is a problem with scrolling settings on the trackpad and mouse. If the Natural scrolling setting is enabled, the trackpad scrolls as it should: when I use two fingers from bottom to top, it scrolls down, when I use two fingers from top to bottom, it scrolls up. But if you scroll on the mouse with this setting, then when you scroll the wheel down, it scrolls up, and when you scroll the wheel up, it scrolls down. If you disable the Natural Scrolling setting, the mouse wheel scrolls correctly, but the trackpad starts scrolling backwards.

Confusingly, macOS has two different natural scroll switches: one is in the trackpad settings, and the other is in the mouse settings. But they’re the same setting, and enabling one enables the other. When you frequently switch between trackpad and mouse, you have to constantly change this setting.

I found two programs that allow you to configure scrolling for mouse and trackpad separately:

Downloaded `Scroll Reverser.

The program required universal access and input monitoring access.

After granting access, I unchecked the Mouse Reverse checkbox, and in the mouse and trackpad settings, Natural Scrolling is turned off. And checked the Autorun checkbox.

Now scrolling will be familiar on both mouse and trackpad when starting the system.

Translated with DeepL.com (free version)