diff --git a/src/App.jsx b/src/App.jsx index 1317027..f8e6799 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -24,7 +24,8 @@ function TetrisPiece({ piece, isDark }) { setShowText(false); }; - const handleClick = () => { + const handleClick = (e) => { + e.preventDefault(); if (piece.link) { window.open(piece.link, '_blank', 'noopener,noreferrer'); } diff --git a/src/index.css b/src/index.css index 7fc9f8f..d6e328a 100644 --- a/src/index.css +++ b/src/index.css @@ -29,6 +29,11 @@ -webkit-tap-highlight-color: transparent; } +.tetris-board > div { + touch-action: manipulation; + -webkit-tap-highlight-color: transparent; +} + html, body { width: 100%; overflow-x: hidden;