diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-28 15:24:00 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-28 15:24:00 +0200 |
commit | 86ff831600254329bd52e90eb141a1c2c8e3d031 (patch) | |
tree | 0230007dd90a6184798701e1441a1d9d4d3a687a /ext/mixed/js/display.js | |
parent | beea89a421736ec157e196ffca6b3720a811635d (diff) |
preventDefault correctly
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r-- | ext/mixed/js/display.js | 4 |
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(); } } } |