temporarily disable navigation header mouse wheel
Unblock release #355, #376
This commit is contained in:
parent
15f79bc78b
commit
ffad78f7d4
@ -303,7 +303,7 @@ class Display {
|
|||||||
if (interactive) {
|
if (interactive) {
|
||||||
const actionPrevious = document.querySelector('.action-previous');
|
const actionPrevious = document.querySelector('.action-previous');
|
||||||
const actionNext = document.querySelector('.action-next');
|
const actionNext = document.querySelector('.action-next');
|
||||||
const navigationHeader = document.querySelector('.navigation-header');
|
// const navigationHeader = document.querySelector('.navigation-header');
|
||||||
|
|
||||||
this.persistentEventListeners.addEventListener(document, 'keydown', this.onKeyDown.bind(this), false);
|
this.persistentEventListeners.addEventListener(document, 'keydown', this.onKeyDown.bind(this), false);
|
||||||
this.persistentEventListeners.addEventListener(document, 'wheel', this.onWheel.bind(this), {passive: false});
|
this.persistentEventListeners.addEventListener(document, 'wheel', this.onWheel.bind(this), {passive: false});
|
||||||
@ -313,9 +313,10 @@ class Display {
|
|||||||
if (actionNext !== null) {
|
if (actionNext !== null) {
|
||||||
this.persistentEventListeners.addEventListener(actionNext, 'click', this.onNextTermView.bind(this));
|
this.persistentEventListeners.addEventListener(actionNext, 'click', this.onNextTermView.bind(this));
|
||||||
}
|
}
|
||||||
if (navigationHeader !== null) {
|
// temporarily disabled
|
||||||
this.persistentEventListeners.addEventListener(navigationHeader, 'wheel', this.onHistoryWheel.bind(this), {passive: false});
|
// if (navigationHeader !== null) {
|
||||||
}
|
// this.persistentEventListeners.addEventListener(navigationHeader, 'wheel', this.onHistoryWheel.bind(this), {passive: false});
|
||||||
|
// }
|
||||||
} else {
|
} else {
|
||||||
this.persistentEventListeners.removeAllEventListeners();
|
this.persistentEventListeners.removeAllEventListeners();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user