Skip to content

Commit

Permalink
use pointer events instead of mouse events for hover
Browse files Browse the repository at this point in the history
  • Loading branch information
RheingoldRiver committed Jul 2, 2024
1 parent ca4392e commit cb86ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Cell/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export const Cell = ({
onClick={() => {
if (board) clickBoard(x, y);
}}
onMouseEnter={() => {
onPointerEnter={() => {
if (board) hoverBoard(x, y);
}}
onMouseLeave={() => {
onPointerLeave={() => {
if (board) unhoverBoard();
}}
>
Expand Down

0 comments on commit cb86ad4

Please sign in to comment.