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

fix(Grid): Force scroll to 100% when necessary #3980

Merged
merged 1 commit into from Jul 14, 2015
Merged

fix(Grid): Force scroll to 100% when necessary #3980

merged 1 commit into from Jul 14, 2015

Conversation

c0bra
Copy link
Contributor

@c0bra c0bra commented Jul 14, 2015

Containers that have overflow: hidden set are not able to naturally scroll
to 100%, because they cannot handle native scroll events; only mousewheel. It's a long discussion; see #3772 for notes.

This change catches a mousewheel event that should put the container at
the max scroll position (basically scrollHeight - offsetHeight) and
manually sets the scrollTop to that amount.

Fixes #3772

Review on Reviewable

Containers that have overflow: hidden set are not able to naturally scroll
to 100%, because they cannot handle native scroll events; only mousewheel. It's a long discussion; see #3772 for notes.

This change catches a mousewheel event that should put the container at
the max scroll position (basically scrollHeight - offsetHeight) and
manually sets the scrollTop to that amount.

Fixes #3772
c0bra added a commit that referenced this pull request Jul 14, 2015
fix(Grid): Force scroll to 100% when necessary
@c0bra c0bra merged commit 424212c into master Jul 14, 2015
@c0bra c0bra removed the in progress label Jul 14, 2015
@c0bra c0bra deleted the fix-3772 branch July 14, 2015 21:56
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

2 participants