QScrollArea: thumb doesn't center on mouse point for small thumbs (long content) #17206
Labels
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
When pressing on the bar (not the thumb) of QScrollArea, the content scrolls such that middle of the thumb is positioned underneath the mouse cursor. This behavior is consistent with native scrolling (although inline [non-] scroll can behave differently).
What did you expect to happen?
It works well when there is little content inside scroll area and the thumb size is directly proportional to the size of the content. But when there is a lot of content the snapping breaks.
Reproduction URL
https://codepen.io/thexeos/pen/abrdvVL
How to reproduce?
I'll be submitting a PR shortly.
The text was updated successfully, but these errors were encountered: