files/en-us/web/css/reference/properties/overscroll-behavior-y/index.md
The overscroll-behavior-y CSS property sets the browser's behavior when the vertical boundary of a scrolling area is reached.
See {{cssxref("overscroll-behavior")}} for a full explanation.
/* Keyword values */
overscroll-behavior-y: auto; /* default */
overscroll-behavior-y: contain;
overscroll-behavior-y: none;
/* Global values */
overscroll-behavior-y: inherit;
overscroll-behavior-y: initial;
overscroll-behavior-y: revert;
overscroll-behavior-y: revert-layer;
overscroll-behavior-y: unset;
The overscroll-behavior-y property is specified as a keyword chosen from the list of values below.
auto
contain
contain value disables native browser navigation, including the vertical pull-to-refresh gesture and horizontal swipe navigation.none
{{cssinfo}}
{{csssyntax}}
.messages {
height: 220px;
overflow: auto;
overscroll-behavior-y: contain;
}
See {{cssxref("overscroll-behavior")}} for a full example and explanation.
{{Specifications}}
{{Compat}}