diff --git a/src/containers/Simularium/index.tsx b/src/containers/Simularium/index.tsx index a7d78d0e..902cd056 100644 --- a/src/containers/Simularium/index.tsx +++ b/src/containers/Simularium/index.tsx @@ -188,8 +188,11 @@ class App extends React.Component { public handleDragOverViewer(event: DragEvent) { const { dragOverViewer, fileIsDraggedOverViewer } = this.props; event.preventDefault(); + + const hasFiles = event.dataTransfer?.types.includes("Files"); + clearTimeout(this.endDragover); - if (!fileIsDraggedOverViewer) { + if (!fileIsDraggedOverViewer && hasFiles) { dragOverViewer(); } }