mirror of https://github.com/lgc-4/DataTools3.git
prevent context menu
This commit is contained in:
parent
d76be70fb8
commit
7c92a523a2
|
@ -39,6 +39,10 @@ document.addEventListener("mousedown", (e) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.addEventListener("contextmenu", (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
document.addEventListener("mouseup", (e) => {
|
document.addEventListener("mouseup", (e) => {
|
||||||
if (e.button == 0 && draggingBox != null) {
|
if (e.button == 0 && draggingBox != null) {
|
||||||
draggingBox.element.classList.remove("dragging");
|
draggingBox.element.classList.remove("dragging");
|
||||||
|
|
Loading…
Reference in New Issue