This commit is contained in:
33333-33333 2026-07-18 13:06:02 +09:00
commit f657b6a4a4
94 changed files with 3970 additions and 1241 deletions

View file

@ -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);