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>