This commit is contained in:
Manuel Friedli 2023-04-17 01:24:28 +02:00
parent 8f64a65a2a
commit 38bc41e217

View file

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