Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Jun 10, 2024
1 parent 0cb5d4c commit 00beee9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions frontend/www/src/modules/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ import { ebsFetch } from "../util/ebs";
import { getConfig } from "../util/config";
import { logToDiscord } from "../util/logger";

// get body element
const body = document.body;
// stop double click events
body.addEventListener("dblclick", (e) => {
document.body.addEventListener("click", (e) => {
e.stopPropagation();
e.preventDefault();
});

document.body.addEventListener("dblclick", (e) => {
e.stopPropagation();
e.preventDefault();
});

document.addEventListener("auxclick", (e) => {
e.stopPropagation();
e.preventDefault();
});
Expand Down

0 comments on commit 00beee9

Please sign in to comment.