prevent unwanted wheel events on history bar
This commit is contained in:
parent
e8701cb950
commit
8eac191c97
@ -221,13 +221,16 @@ class Display {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onHistoryWheel(e) {
|
onHistoryWheel(e) {
|
||||||
|
if (e.altKey) { return; }
|
||||||
const delta = -e.deltaX || e.deltaY;
|
const delta = -e.deltaX || e.deltaY;
|
||||||
if (delta > 0) {
|
if (delta > 0) {
|
||||||
this.sourceTermView();
|
this.sourceTermView();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
} else if (delta < 0) {
|
} else if (delta < 0) {
|
||||||
this.nextTermView();
|
this.nextTermView();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user