Dev Helpers
← Back

Stop scroll chaining at a panel edge

Stop scroll chaining at a panel edge with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    overflow-y: auto;
    overscroll-behavior: contain;
    height: 5rem;
  }
</style>
<div class="demo">
  <p style="height: 12rem">A scrollable panel with contained overscroll.</p>
</div>