summaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-28 15:24:00 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-28 15:24:00 +0200
commit86ff831600254329bd52e90eb141a1c2c8e3d031 (patch)
tree0230007dd90a6184798701e1441a1d9d4d3a687a /ext/mixed
parentbeea89a421736ec157e196ffca6b3720a811635d (diff)
preventDefault correctly
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/display.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index bd4b13d1..f81ea7ee 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -222,14 +222,14 @@ class Display {
this.entryScrollIntoView(this.index + (e.deltaY > 0 ? 1 : -1), null, true);
e.preventDefault();
}
- }
- if (e.shiftKey) {
+ } else if (e.shiftKey) {
const delta = e.deltaX || e.deltaY;
if (delta > 0) {
this.sourceTermView();
e.preventDefault();
} else if (delta < 0) {
this.poppedTermView();
+ e.preventDefault();
}
}
}