y
This commit is contained in:
parent
61718e2981
commit
f657b6a4a4
94 changed files with 3970 additions and 1241 deletions
|
|
@ -7,6 +7,10 @@
|
|||
const actions = global.TarinaiPointerActionSystem.create(ctx);
|
||||
|
||||
canvas.addEventListener("contextmenu", (e) => e.preventDefault());
|
||||
window.addEventListener("contextmenu", (e) => {
|
||||
const now = performance?.now?.() ?? Date.now();
|
||||
if (uiCache.panning || now <= Number(uiCache.suppressContextMenuUntil || 0)) e.preventDefault();
|
||||
}, true);
|
||||
canvas.addEventListener("mousedown", (e) => {
|
||||
if (e.button === 0) {
|
||||
const p = ctx.screenToWorldEvent(e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue