24 May 2023
Elastic (Rubber Band) scrolling in macOS can make your website look quirky if you have a background image or animation with a blurry block on top for example
The animation will appear at the top when you pull the page down by dragging two fingers on the trackpad for example, not nice at all
Here’s an example from this website (background blob rotating animation behind a blurry block)
defaults write -g NSScrollViewRubberbanding -int 0
Tested on Monterey and Lion (must restart chrome)
hide horizontal overflow and prevent overscroll behavior vertically by using the overscroll-behavior-y CSS
property on the HTML
element
html {
overflow-x: hidden;
overscroll-behavior-y: none;
}
Get in touch_