Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.27k stars 885 forks source link

getScrollParent() in page mode misses `overflow: overlay` scroll container #800

Open thexeos opened 1 year ago

thexeos commented 1 year ago

Describe the bug

While in page mode, the regex that searches the scroll parent (and in all honesty, the method should be more sophisticated, as it does not distinguish between horizontal scroll parent and vertical scroll parent) skips elements with overflow: overlay.

Reproduction

https://github.com/Akryum/vue-virtual-scroller/blob/a6e07da79af0165a62fc6fc9bfb8ca08631b25ef/packages/vue-virtual-scroller/src/scrollparent.js#L3

Validations