I have tested a lot of combinations. This weird behavior only occurs when:
Using safari. No such behavior in chrome and Firefox.
Using mouse wheel instead of touchpad.
Using tailwindcss container query plugin, add a @container className to the list items.
Using an IntersectionObserver to observe a div at the bottom of the scrollarea viewport.
Using dangerouslySetInnerHTML in list items.
Using Nextjs. I tested in a vite/react project with the same code and it scrolls normally.
You need to satisfy so many conditions at once to reproduce this bug. This is way beyond my understanding of everything. It may not be a radix ui bug, even. I can't tell.
Bug report
Current Behavior
Cannot scroll to bottom using mouse wheel in safari. The page will bounce back a bit when reaching the bottom.
https://github.com/radix-ui/primitives/assets/39266588/92bc2579-82b4-4a6a-a694-5867b13b8acd
I have tested a lot of combinations. This weird behavior only occurs when:
@container
className to the list items.dangerouslySetInnerHTML
in list items.You need to satisfy so many conditions at once to reproduce this bug. This is way beyond my understanding of everything. It may not be a radix ui bug, even. I can't tell.
Expected behavior
Scrolls normally to the end.
Reproducible example
I have created an example here: CodeSandbox Example
Suggested solution
Additional context
Your environment