feature/add-user-interaction #3

Merged
manuel merged 4 commits from feature/add-user-interaction into main 2023-04-17 01:25:58 +02:00
Showing only changes of commit 38bc41e217 - Show all commits

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>