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

Remove breadcrumb scroll tolerances and use sensible defaults #2913

Merged
merged 1 commit into from
Apr 11, 2019

Conversation

turt2live
Copy link
Member

Fixes element-hq/element-web#9394
Fixes element-hq/element-web#9400

Numbers chosen based on user feedback. The setting has also been removed because it isn't really needed anymore.

Fixes element-hq/element-web#9394
Fixes element-hq/element-web#9400

Numbers chosen based on user feedback. The setting has also been removed because it isn't really needed anymore.
@turt2live turt2live requested a review from a team April 11, 2019 17:08
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks! Looks like it should improve touchpad behaviour. 😁

// xyThreshold is the amount of horizontal motion required for the component to
// ignore the vertical delta in a scroll. Used to stop trackpads from acting in
// strange ways. Should be positive.
const xyThreshold = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting choice to keep the variables around when they're both effectively causing no change... I guess it's in case we want to adjust down the road? Would it be simpler to just remove for now?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's more to keep the documentation for the behaviour, and to make it slightly easier to tweak down the road if needed.

@turt2live
Copy link
Member Author

(merging because lint passed but CI is broken due to matrix.org being down - will accept responsibility for breaking develop if it breaks)

@turt2live turt2live merged commit 9bd8f47 into develop Apr 11, 2019
@turt2live turt2live deleted the travis/breadcrumbs/scrolling-3 branch April 11, 2019 17:30
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.

2 participants