Sub topic 5
Scrolling and natural scroll direction
This chapter covers how two-finger scrolling works on a Mac, what "natural" scroll direction means, and how to change it. It assumes you know the basics of macOS: windows, the menu bar, and where System Settings lives. It also assumes you have scrolled on some computer before.
What scrolling is on a Multi-Touch surface
Scrolling moves the visible part of a document, web page or list without moving the pointer. On a Mac trackpad you scroll by placing two fingers on the surface and sliding them together. On a Magic Mouse you slide one finger along the top surface. Both devices report finger movement to macOS, and macOS turns that movement into scroll events for the app under the pointer.
Two details are worth knowing early:
- The app that scrolls is the one under the pointer, not necessarily the one that has keyboard focus. If you rest the pointer over a background window, scrolling moves that window.
- Scrolling is continuous. The system sends many small position changes, so the content follows your fingers closely instead of jumping by fixed lines.
Two-finger scrolling
Put two fingers on the trackpad, slightly apart, and move them up or down to scroll vertically. Move them left or right to scroll horizontally in apps that have horizontal content, such as spreadsheets, timelines and wide images. You can move diagonally in apps that allow scrolling in both directions.
Inertia
When you lift your fingers while still moving, the content keeps travelling and slows down gradually. This is called inertia scrolling or momentum scrolling. A fast flick travels far. A slow drag stops almost as soon as you lift. To stop the motion early, put a finger on the trackpad.
Scroll speed
Scroll speed is set separately from pointer tracking speed. In System Settings, the scrolling speed controls live in the Trackpad and Mouse panes, and the exact layout differs between macOS versions. If scrolling feels too fast or too slow, adjust the scrolling speed there and leave the tracking speed for the pointer itself.
What "natural" scroll direction means
Natural scrolling makes content follow your fingers, the way a sheet of paper on a desk does. If you slide two fingers up, the page moves up, so you see content that was below. This matches touchscreens on phones and tablets.
The older convention, sometimes called traditional or reversed scrolling, works like a scroll bar. Sliding fingers down moves the scroll bar thumb down, which means the page moves up and you see content that was below.
| Setting | Fingers move | Content moves | You see |
|---|---|---|---|
| Natural scrolling on | Up | Up | Content from lower on the page |
| Natural scrolling on | Down | Down | Content from higher on the page |
| Natural scrolling off | Up | Down | Content from higher on the page |
| Natural scrolling off | Down | Up | Content from lower on the page |
Natural scrolling is on by default on a new Mac. Many people who moved from Windows or from a mouse with a wheel prefer to turn it off, because a wheel rolled toward you traditionally scrolls the page down.
Changing the direction in System Settings
The direction setting is in System Settings, in the Trackpad pane under Scroll & Zoom, and in the Mouse pane. Open System Settings, choose Trackpad, open the Scroll & Zoom tab, and switch Natural scrolling on or off. For a Magic Mouse, choose Mouse and use the same-named switch there.
On current macOS versions, the trackpad and mouse share one underlying preference. Changing it in one pane changes it in the other. This surprises people who want natural scrolling on the trackpad and traditional scrolling on a wheel mouse. Because the setting is shared, you cannot set the two devices differently from System Settings alone. Third-party utilities exist that give each device its own direction, but they are outside the scope of this chapter.
Reading the setting from Terminal
The shared direction preference is stored in the global preference domain under the key com.apple.swipescrolldirection. You can read it with the defaults command, which reads and writes stored preferences.
defaults read NSGlobalDomain com.apple.swipescrolldirectionThe command prints 1 when natural scrolling is on and 0 when it is off. If the key was never written, defaults reports that the pair does not exist. In that case the system default applies, which is natural scrolling on.
This chapter only reads the value. Changing it from Terminal is possible, but the running system may not pick up the new value until you log out and log in, and System Settings is the supported way to change it. A later chapter covers defaults in more detail.
Scrolling with other input
Not every scroll comes from two fingers. These also scroll the content under the pointer:
- A mouse wheel or scroll ball. The direction follows the same shared preference.
- Arrow keys, Page Up and Page Down, and the space bar in many apps and browsers.
- Scroll bars, which you can set to show always, when scrolling, or automatically based on the device in the Appearance pane.
- Smooth, continuous scrolling on a Magic Mouse, which uses one finger instead of two.
Scroll bars are not affected by natural scrolling in the sense of dragging. Dragging a scroll bar thumb down always moves the page toward its end.
Common errors
Most scrolling problems come from a few causes.
- The direction feels backwards after a fresh setup or an update. The shared natural scrolling setting differs from what you are used to. Open System Settings and flip the switch. Then confirm with the
defaults readcommand above. - Only one device feels wrong. You have a mouse with a wheel and a trackpad, and both follow the same setting. Pick the setting that suits the device you use most, or look at a third-party tool.
- Scrolling moves the wrong window. The pointer is over a different window than the one you are looking at. Move the pointer over the content you want to scroll.
- Two fingers do nothing. Check that the fingers are on the trackpad surface and not at the very edge. Make sure no finger rests on the surface in a way that confuses the contact count. A palm resting near the edge can register as an extra touch.
- Scrolling is jumpy or stops. Clean the trackpad surface and your fingers. Dry or very smooth fingertips and damp or dirty surfaces both reduce how reliably the surface senses touch.
- Scrolling works in one app only. The app may handle scroll events itself, for example a game, a remote desktop client or a virtual machine window. Those apps may pass scroll events to another system with its own direction setting.
A worked check
Follow these steps to confirm the current state and the effect of the switch.
- Open Safari or any long web page and place the pointer over it.
- Slide two fingers up on the trackpad. Note whether you see content from lower on the page (natural on) or higher (natural off).
- In Terminal, run
defaults read NSGlobalDomain com.apple.swipescrolldirection. - Compare the printed value with what you saw.
1should match the first case and0the second. - Turn the switch in System Settings, repeat steps 2 and 3, and confirm that the value flips along with the behavior.
If the printed value and the behavior disagree, a third-party utility may be overriding the direction for scroll events. Quit it and test again.
Exercise
You use a Magic Mouse and a MacBook trackpad. You turn off natural scrolling in the Trackpad pane, and the Magic Mouse direction changes too. Why, and what does defaults read NSGlobalDomain com.apple.swipescrolldirection print afterward?
Show answer
Both devices read one shared preference, com.apple.swipescrolldirection, so changing it in either pane changes it for both. After you turn natural scrolling off, the command prints 0.
Exercise
With natural scrolling on, you slide two fingers down on a web page. Do you see content from higher or lower on the page, and which way did the page move?
Show answer
You see content from higher on the page. The page moves down with your fingers.
Exercise
You scroll with two fingers over a Safari window, but a different window behind it moves. What is the most likely cause?
Show answer
The pointer is over the other window. Scroll events go to the window under the pointer, not the window that has keyboard focus.