Browse Source

Merge pull request #423 from jpattle/option-to-disable-drag-overlay

Added an option to disable the drag overlay
David Sehnal 3 years ago
parent
commit
17fe57b8a5
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/mol-plugin-ui/plugin.tsx
  2. 2 1
      src/mol-plugin-ui/spec.ts

+ 1 - 1
src/mol-plugin-ui/plugin.tsx

@@ -159,7 +159,7 @@ class Layout extends PluginUIComponent {
                     {layout.showControls && controls.bottom !== 'none' && this.region('bottom', controls.bottom || Log)}
                 </div>
                 {!this.plugin.spec.components?.hideTaskOverlay && <OverlayTaskProgress />}
-                <DragOverlay plugin={this.plugin} showDragOverlay={this.showDragOverlay} />
+                {!this.plugin.spec.components?.disableDragOverlay && <DragOverlay plugin={this.plugin} showDragOverlay={this.showDragOverlay} />}
             </div>
         </div>;
     }

+ 2 - 1
src/mol-plugin-ui/spec.ts

@@ -24,7 +24,8 @@ interface PluginUISpec extends PluginSpec {
             view?: React.ComponentClass,
             controls?: React.ComponentClass
         },
-        hideTaskOverlay?: boolean
+        hideTaskOverlay?: boolean,
+        disableDragOverlay?: boolean,
     },
 }