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

Commit

Permalink
Merge pull request #3016 from matrix-org/travis/scroll-breadcrumbs
Browse files Browse the repository at this point in the history
Translate scroll movement if the deltaX is the same as the threshold
  • Loading branch information
turt2live authored May 22, 2019
2 parents 983214f + f7ba8ff commit 6368566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/IndicatorScrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class IndicatorScrollbar extends React.Component {
// the harshness of the scroll behaviour. Should be a value between 0 and 1.
const yRetention = 1.0;

if (Math.abs(e.deltaX) < xyThreshold) {
if (Math.abs(e.deltaX) <= xyThreshold) {
// noinspection JSSuspiciousNameCombination
this._scrollElement.scrollLeft += e.deltaY * yRetention;
}
Expand Down

0 comments on commit 6368566

Please sign in to comment.