aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-02-05 14:19:48 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-02-05 14:19:48 +0200
commit8eac191c97b755d7b090a46055b183750e6faa45 (patch)
treef5251f21fe3aff72a72afecd8097cc15305b2079 /ext/mixed/js
parente8701cb950edd4c90f6c911e340db3af32194113 (diff)
prevent unwanted wheel events on history bar
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/display.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 54cda0eb..a6cfe848 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -221,13 +221,16 @@ class Display {
}
onHistoryWheel(e) {
+ if (e.altKey) { return; }
const delta = -e.deltaX || e.deltaY;
if (delta > 0) {
this.sourceTermView();
e.preventDefault();
+ e.stopPropagation();
} else if (delta < 0) {
this.nextTermView();
e.preventDefault();
+ e.stopPropagation();
}
}