Skip to content

Commit

Permalink
Disable context menu on canvas.
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed Oct 18, 2024
1 parent 8d06299 commit 00a19aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ts/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,11 @@ function init() {
event.stopPropagation();
return false;
};
canvas.oncontextmenu = function(event) {
event.preventDefault();
event.stopPropagation();
return false;
};

let toggle_fullscreen_btn = document.getElementById("fullscreen") as HTMLButtonElement;

Expand Down

0 comments on commit 00a19aa

Please sign in to comment.