manzt / quak

a scalable data profiler
https://manzt.github.io/quak/
MIT License
201 stars 9 forks source link

feat: Add directional scroll behavior #39

Closed manzt closed 1 month ago

manzt commented 1 month ago

This PR both improves scroll behavior and makes it more consistent across environments. Rather than delegating to the parent for handling scroll, we 1.) trap all wheel events and avoid propagation to parent (fixes #27) and 2.) enforce directional scrolling (either vertically or horizontally, but not at the same time).

I wasn't sure about the latter, but after trying it I think it's much nicer. You avoid accidentally scrolling horizontally, for example, when quickly scanning many rows.