Skip to content

overscroll-behavior

Utilities for controlling how scroll chaining behaves at the boundary of a scrollable container.

ISS preview
Iced + ISS preview demonstrating overscroll-behavior
ISS preview for overscroll-behavior
use iss::{scroll_box_tw, tw};
let drawer = scroll_box_tw(items, tw!("h-80 overflow-y-auto overscroll-contain"));
Tailwind Class CSS Property / Effect iss::typed Builder
overscroll-auto overscroll-behavior: auto; .overscroll_auto()
overscroll-contain overscroll-behavior: contain; .overscroll_contain()
overscroll-none overscroll-behavior: none; .overscroll_none()
overscroll-x-contain / y-contain overscroll-behavior-x/y: contain; .overscroll_y_contain()
  • overscroll-contain stops wheel scroll events from bubbling to outer scrollables when the inner pane reaches its boundary.

overflow · scroll-behavior · scrollbar-gutter