Skip to content

Commit 7743497

Browse files
committed
prevent text select
1 parent 780c27c commit 7743497

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,8 @@ export const App = () => {
637637
boxShadow: "0 20px 60px rgba(0, 0, 0, 0.35)",
638638
width: "fit-content",
639639
margin: isPortraitMobile ? "0 auto" : undefined,
640+
userSelect: "none",
641+
WebkitUserSelect: "none",
640642
}}
641643
>
642644
{board.map((row, rowIndex) =>
@@ -749,6 +751,8 @@ export const App = () => {
749751
"linear-gradient(180deg, rgba(240, 216, 181, 0.62), rgba(224, 189, 145, 0.66))",
750752
border: "none",
751753
alignContent: "flex-start",
754+
userSelect: "none",
755+
WebkitUserSelect: "none",
752756
}}
753757
>
754758
{trayPieces.map((piece) => {

0 commit comments

Comments
 (0)