From 5c4d7f7b27c26d0ebbe8cd2de5cfe975b7a3dbfc Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 4 Nov 2021 14:24:34 +0200 Subject: [PATCH] settings.js: remove workaround (#355) --- src/js/page/ui/settings.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/js/page/ui/settings.js b/src/js/page/ui/settings.js index cb9fad490..530f39355 100644 --- a/src/js/page/ui/settings.js +++ b/src/js/page/ui/settings.js @@ -35,7 +35,6 @@ export default class Settings { this.container.addEventListener('input', (event) => this._onChange(event), ); - scroller.addEventListener('wheel', (event) => this._onMouseWheel(event)); resetBtn.addEventListener('click', () => this._onReset()); // TODO: revisit this @@ -49,16 +48,6 @@ export default class Settings { }); } - _onMouseWheel(event) { - // Prevents bounce effect on desktop. - // Firefox uses pixels on a mouse wheel, ignore it - // 1 is "lines", 0 is "pixels" - if (event.deltaMode === 0) { - event.preventDefault(); - event.currentTarget.scrollTop += event.deltaY; - } - } - _onChange(event) { clearTimeout(this._throttleTimeout);