diff --git a/components/canvas/canvas.tsx b/components/canvas/canvas.tsx index c2f0f1aa7..bb1394286 100644 --- a/components/canvas/canvas.tsx +++ b/components/canvas/canvas.tsx @@ -56,14 +56,13 @@ export default function Canvas() { onPointerMove={handlePointerMove} onPointerUp={handlePointerUp} onTouchStart={handleTouchStart} - // onTouchMove={handleTouchMove} > {isReady && ( - {/* */} + diff --git a/components/canvas/shape.tsx b/components/canvas/shape.tsx index 18b73e32d..691783359 100644 --- a/components/canvas/shape.tsx +++ b/components/canvas/shape.tsx @@ -8,8 +8,6 @@ import useShapeEvents from 'hooks/useShapeEvents' import { getShapeStyle } from 'lib/shape-styles' function Shape({ id, isSelecting }: { id: string; isSelecting: boolean }) { - const isSelected = useSelector((s) => s.values.selectedIds.has(id)) - const shape = useSelector(({ data }) => getPage(data).shapes[id]) const rGroup = useRef(null) @@ -32,7 +30,7 @@ function Shape({ id, isSelecting }: { id: string; isSelecting: boolean }) { const style = getShapeStyle(shape.style) return ( - + {isSelecting && (