aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/js')
-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();
}
}
}