preventDefault correctly
This commit is contained in:
parent
beea89a421
commit
86ff831600
@ -222,14 +222,14 @@ class Display {
|
|||||||
this.entryScrollIntoView(this.index + (e.deltaY > 0 ? 1 : -1), null, true);
|
this.entryScrollIntoView(this.index + (e.deltaY > 0 ? 1 : -1), null, true);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
} else if (e.shiftKey) {
|
||||||
if (e.shiftKey) {
|
|
||||||
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();
|
||||||
} else if (delta < 0) {
|
} else if (delta < 0) {
|
||||||
this.poppedTermView();
|
this.poppedTermView();
|
||||||
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user