diff options
| author | siikamiika <siikamiika@users.noreply.github.com> | 2020-02-05 14:19:48 +0200 | 
|---|---|---|
| committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-02-05 14:19:48 +0200 | 
| commit | 8eac191c97b755d7b090a46055b183750e6faa45 (patch) | |
| tree | f5251f21fe3aff72a72afecd8097cc15305b2079 | |
| parent | e8701cb950edd4c90f6c911e340db3af32194113 (diff) | |
prevent unwanted wheel events on history bar
| -rw-r--r-- | ext/mixed/js/display.js | 3 | 
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();          }      } |