improves touch events when drawing
This commit is contained in:
parent
76a4ccdfcb
commit
2af0d7b3a7
3 changed files with 13 additions and 8 deletions
|
@ -18,10 +18,10 @@ export default function Page() {
|
|||
const isSelecting = useSelector((s) => s.isIn('selecting'))
|
||||
|
||||
return (
|
||||
<>
|
||||
<g pointerEvents={isSelecting ? 'all' : 'none'}>
|
||||
{currentPageShapeIds.map((shapeId) => (
|
||||
<Shape key={shapeId} id={shapeId} isSelecting={isSelecting} />
|
||||
))}
|
||||
</>
|
||||
</g>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue