mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 15:31:22 +02:00
Merge pull request #3016 from matrix-org/travis/scroll-breadcrumbs
Translate scroll movement if the deltaX is the same as the threshold
This commit is contained in:
commit
6368566887
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user