Skip to content

Commit 55f064c

Browse files
fix
1 parent 3fcd9cf commit 55f064c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/Board/Board.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,12 @@ const Board = React.forwardRef<BoardActions, BoardProps>(
951951
function (this: fabricTypes.CanvasAnnotationState, opt) {
952952
const evt = opt.e;
953953

954-
if ((evt.button === 0 && !opt.target) || evt.button === 1) {
954+
if (
955+
(evt.button === 0 &&
956+
!opt.target &&
957+
!this.drawingObject?.isDrawing) ||
958+
evt.button === 1
959+
) {
955960
this.isDragging = true;
956961
this.selection = false;
957962
this.lastPosX = evt.clientX;

0 commit comments

Comments
 (0)