From f7ba8ffbd0bec603a129f04102f3e52b3f889787 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 22 May 2019 10:19:38 -0600 Subject: [PATCH] Translate scroll movement if the deltaX is the same as the threshold Because the threshold is zero and the X movement is zero, we were not translating vertical movement to horizontal scrolling. Fixes https://github.com/vector-im/riot-web/issues/9804 --- src/components/structures/IndicatorScrollbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/IndicatorScrollbar.js b/src/components/structures/IndicatorScrollbar.js index a615717104..a62206b32b 100644 --- a/src/components/structures/IndicatorScrollbar.js +++ b/src/components/structures/IndicatorScrollbar.js @@ -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; }