overscroll-behavior-x

Controls what happens when you reach the end of a horizontal scroll zone. It's often used to keep users from accidentally navigating 'back' or 'forward' with swipe gestures.

Quick example

body {
  /* Disables the bounce/pull-to-refresh effect on mobile horizontal swipes */
  overscroll-behavior-x: none;
}

Quick facts

Initial value
auto
Inherited
No
Applies to
non-replaced block and inline-block elements
Animation type
discrete

Values

containnoneauto

overscroll-behavior-x Browser Support

Limited availability95% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Not ready for production without a fallback.

144+
150+
144+
ESC