Movatterモバイル変換


[0]ホーム

URL:


  1. Glossary
  2. Scroll boundary

Scroll boundary

Ascroll boundary is the point at which a scrollable element cannot be scrolled any further in a particular direction, either at the top or bottom (or left/right for horizontal scrolling). This typically is the edge of thescrollport.

When the content of ascroll container does not exceed the container size in the scrolling direction, the container is considered to be at its scroll boundary at all times. This is because there's no extra content to scroll through. If the content is prevented from scrolling, such as whenoverflow: hidden is set, the element is not a scroll container, and therefore, there is no scroll boundary.

When the scroll boundary of the scrollport is reached by a user scrolling the content, a visual effect such as a bounce or a functional action like pull-to-refresh on mobile devices may occur. This default browser behavior is called theboundary default action.

For example, on mobile devices, dragging a page downward when already at the top causes a bounce effect and sometimes triggers a page refresh. This bounce or refresh is the boundary default action.

Boundary default actions can be local or non-local.

  • Alocal boundary default is the action that occurring at the boundary of a specific scrollable area confined to that element. This action is consideredlocal as it does not affect any ancestor containers or the rest of the webpage.

  • Anon-local boundary default action is when reaching the scroll boundary of a scroll container has effects beyond the specific element being scrolled. An example of this isscroll chaining, where reaching the scroll boundary of one element triggers scrolling in a parent or ancestor element, and possibly even initiating a page-wide action, such as navigation.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp