Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linear column scrolling #152

Merged
merged 3 commits into from
Feb 14, 2022
Merged

Linear column scrolling #152

merged 3 commits into from
Feb 14, 2022

Conversation

texodus
Copy link
Member

@texodus texodus commented Feb 13, 2022

Previously, horizontal scrolling was calculated by evenly distributing the available scrollWidth among the viewable columns. This worked fine and arguably made cell-aligned-scrolling more pleasant, but caused a perceived scroll position drift when the regular-table dimensions were changed as the scrollWidth / offsetWidth ratio changed. This PR makes this behave linear with the column sizes, so e.g. scrolling through a 200px column will take twice as many pixels as a 100px column. This scrolling model works better (arguably) with sub-cell scrolling introduced in 0.5.0, and more importantly does not cause position drift.

@texodus texodus merged commit 894a055 into master Feb 14, 2022
@texodus texodus deleted the linear-column-scrolling branch February 14, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant