File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ export class InsertAction {
101101 * @returns True iff `insertCallback` function should be called.
102102 */
103103 private insertPrecondition ( workspace : WorkspaceSvg ) : boolean {
104- return this . navigation . canCurrentlyEdit ( workspace ) ;
104+ return (
105+ ! workspace . isDragging ( ) && this . navigation . canCurrentlyEdit ( workspace )
106+ ) ;
105107 }
106108
107109 /**
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ export class NavigationController {
244244 focusToolbox : {
245245 name : Constants . SHORTCUT_NAMES . TOOLBOX ,
246246 preconditionFn : ( workspace ) =>
247- this . navigation . canCurrentlyEdit ( workspace ) ,
247+ ! workspace . isDragging ( ) && this . navigation . canCurrentlyEdit ( workspace ) ,
248248 callback : ( workspace ) => {
249249 switch ( this . navigation . getState ( workspace ) ) {
250250 case Constants . STATE . WORKSPACE :
You can’t perform that action at this time.
0 commit comments