1 && isDragging ? 'cursor-grabbing' : scale > 1 ? 'cursor-grab' : 'cursor-zoom-in'
+ )}
+ onWheel={handleWheel}
+ onPointerDown={handlePointerDown}
+ onPointerMove={handlePointerMove}
+ onPointerUp={handlePointerEnd}
+ onPointerCancel={handlePointerEnd}
+ onDoubleClick={() => {
+ setScale((current) => (current === 1 ? 2.4 : 1))
+ if (scale !== 1) setOffset({ x: 0, y: 0 })
+ }}
+ >
+

+