diff --git a/src/app.js b/src/app.js index 6b9bd90..bd78426 100644 --- a/src/app.js +++ b/src/app.js @@ -12,6 +12,17 @@ const stage = new Konva.Stage({ }); const layer = new Konva.Layer(); + +stage.on("contextmenu", (e) => { + e.evt.preventDefault(); +}); + +stage.on("pointerdown", (e) => { + const pos = stage.getPointerPosition(); + console.log("position", pos); + console.log("event", e.evt, e.evt.button); +}); + const circle = new Konva.Circle({ x: stage.width() /2, y: stage.height() / 2,