ThibaultJanBeyer / DragSelect

An easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop. – Examples:
https://dragselect.com/
Other
715 stars 81 forks source link

Update canScroll method to prevent unintended scroll #210

Closed dbougan closed 1 year ago

dbougan commented 1 year ago

The canScroll method was updated to restore the area's original scrollTop value after determining scrollability. A simple test case was added to prevent future regressions.

Fixes #208

ThibaultJanBeyer commented 1 year ago

Awesome @dbougan thanks a lot for your contribution! This is very clean and straight forward code and amazing you added the test to it 🎉 if the tests pass this can be merged ❤️