Fix some issues with the context menu
This commit is contained in:
parent
d2644c0776
commit
6d85dae68d
@ -119,8 +119,10 @@ class Frontend {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.popupTimerClear();
|
if (e.button === 0) {
|
||||||
this.searchClear(true);
|
this.popupTimerClear();
|
||||||
|
this.searchClear(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMouseOut(e) {
|
onMouseOut(e) {
|
||||||
@ -231,6 +233,10 @@ class Frontend {
|
|||||||
e.preventDefault(); // Disable scroll
|
e.preventDefault(); // Disable scroll
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onAuxClick(e) {
|
||||||
|
this.preventNextContextMenu = false;
|
||||||
|
}
|
||||||
|
|
||||||
onContextMenu(e) {
|
onContextMenu(e) {
|
||||||
if (this.preventNextContextMenu) {
|
if (this.preventNextContextMenu) {
|
||||||
this.preventNextContextMenu = false;
|
this.preventNextContextMenu = false;
|
||||||
@ -278,6 +284,7 @@ class Frontend {
|
|||||||
|
|
||||||
if (this.options.scanning.touchInputEnabled) {
|
if (this.options.scanning.touchInputEnabled) {
|
||||||
this.addEventListener(window, 'click', this.onClick.bind(this));
|
this.addEventListener(window, 'click', this.onClick.bind(this));
|
||||||
|
this.addEventListener(window, 'auxclick', this.onAuxClick.bind(this));
|
||||||
this.addEventListener(window, 'touchstart', this.onTouchStart.bind(this));
|
this.addEventListener(window, 'touchstart', this.onTouchStart.bind(this));
|
||||||
this.addEventListener(window, 'touchend', this.onTouchEnd.bind(this));
|
this.addEventListener(window, 'touchend', this.onTouchEnd.bind(this));
|
||||||
this.addEventListener(window, 'touchcancel', this.onTouchCancel.bind(this));
|
this.addEventListener(window, 'touchcancel', this.onTouchCancel.bind(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user