oops, remove old code

This commit is contained in:
Matthew Hodgson 2019-06-26 18:38:46 +01:00
parent debcafd760
commit 3d11eb430b

View file

@ -152,18 +152,6 @@ export default class IndicatorScrollbar extends React.Component {
return; return;
} }
// Every 15 minutes, start checking to Check for trackpad users every so often to messing with their scroll
// See https://github.com/vector-im/riot-web/issues/10005
const now = new Date().getTime();
if (this._likelyTrackpadUser && now >= this._checkAgainForTrackpad) {
if (Math.abs(e.deltaX) > 0) {
this._likelyTrackpadUser = true;
}
this._checkAgainForTrackpad = now + (15 * 60 * 1000); // 15min
}
if (this._likelyTrackpadUser) return;
if (Math.abs(e.deltaX) <= xyThreshold) { // we are vertically scrolling. if (Math.abs(e.deltaX) <= xyThreshold) { // we are vertically scrolling.
// HACK: We increase the amount of scroll to counteract smooth scrolling browsers. // HACK: We increase the amount of scroll to counteract smooth scrolling browsers.