react-remove-scroll
react-remove-scroll copied to clipboard
fix: handle reverse flex-direction when computing available scroll
This PR adds elementIsReverseScrolled and uses it to swap how available scroll is accumulated for elements with flex-direction: column-reverse or row-reverse, ensuring overscroll detection is correct for reversed flex layouts.
Fixes #148