Skip to content

Commit

Permalink
fix(navigation/movecanvas): hook up with canvas focused state
Browse files Browse the repository at this point in the history
Related to #662
  • Loading branch information
nikku committed Dec 19, 2024
1 parent 8f4c522 commit 90cd1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navigation/movecanvas/MoveCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function MoveCanvas(eventBus, canvas) {
// allow others to hook into the event before us though
// (dragging / element moving will do this)
eventBus.on('element.mousedown', 500, function(e) {
return handleStart(e.originalEvent);
return canvas.isFocused() && handleStart(e.originalEvent);
});


Expand Down

0 comments on commit 90cd1e7

Please sign in to comment.