Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Counteract smooth scrolling on breadcrumbs #3051

Merged
merged 1 commit into from
Jun 3, 2019

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Jun 3, 2019

Smooth scrolling browsers (Firefox) use the relative area to determine how much scroll to apply. Because breadcrumbs are short vertically, the scroll amount is minimal (3 units) in the Y direction. On browsers which don't smooth scroll the units are usually much higher (100 in Chrome on Win 10). Users seem to expect the scrolling to be quicker due to the horizontal space on breadcrumbs, so we add a bit more power to their scroll when it looks small.

Note: Firefox will complain about us doing strange things to scrolling, however they do not have a suggestion for vertical -> horizontal movement.

Fixes element-hq/element-web#9394

Smooth scrolling browsers (Firefox) use the relative area to determine how much scroll to apply. Because breadcrumbs are short vertically, the scroll amount is minimal (3 units) in the Y direction. On browsers which don't smooth scroll the units are usually much higher (100 in Chrome on Win 10). Users seem to expect the scrolling to be quicker due to the horizontal space on breadcrumbs, so we add a bit more power to their scroll when it looks small.

Fixes element-hq/element-web#9394
@turt2live turt2live requested a review from a team June 3, 2019 05:59
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meant to approve actually.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

recent room avatars above the room list very slowly scroll by mouse wheel
2 participants