Improves undo/redo, fixes pinching and multitouch

This commit is contained in:
Steve Ruiz 2021-05-30 14:14:35 +01:00
parent bc6f5cf5b7
commit 76a4ccdfcb
15 changed files with 366 additions and 288 deletions

View file

@ -9,7 +9,7 @@ const clear = () => state.send('CLEARED_PAGE')
export default function UndoRedo() {
return (
<Container>
<Container size={{ '@sm': 'small' }}>
<IconButton onClick={undo}>
<RotateCcw />
</IconButton>
@ -25,7 +25,7 @@ export default function UndoRedo() {
const Container = styled('div', {
position: 'absolute',
bottom: 12,
bottom: 64,
right: 12,
backgroundColor: '$panel',
borderRadius: '4px',
@ -43,4 +43,12 @@ const Container = styled('div', {
height: 13,
width: 13,
},
variants: {
size: {
small: {
bottom: 12,
},
},
},
})