diff --git a/app.js b/app.js index ce215d7..992199c 100644 --- a/app.js +++ b/app.js @@ -327,7 +327,7 @@ } function onDown(e) { - e.preventDefault(); + // Don't preventDefault here — breaks iOS-Safari pointer sequence const p = getXY(e, canvas); isDragging = true; moved = false; @@ -387,7 +387,7 @@ canvas.addEventListener('pointerleave', onUp); // Touch events fallback (older iOS Safari 12-) - canvas.addEventListener('touchstart', onDown, { passive: false }); + canvas.addEventListener('touchstart', onDown, { passive: true }); canvas.addEventListener('touchmove', onMove, { passive: false }); canvas.addEventListener('touchend', onUp, { passive: false }); canvas.addEventListener('touchcancel', onUp, { passive: false });