This commit is contained in:
Manuel Friedli 2023-04-17 01:24:28 +02:00
parent 8f64a65a2a
commit 38bc41e217
1 changed files with 2 additions and 9 deletions

View File

@ -22,22 +22,15 @@ export default function Cell({x, y, state, dispatch}) {
dispatch({
type: 'clicked_cell',
x,
y,
e
y
});
}
}}
onMouseLeave={(e) => {
const leftPressed = e.buttons & 0x1;
if (leftPressed) {
}
}}
onClick={(e) => {
dispatch({
type: 'clicked_cell',
x,
y,
e
y
});
}}>
</div>