Browse Source

MemProfiler: fix drag & drop

lviguier 3 months ago
parent
commit
53ca59f5d7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      hide/Ide.hx

+ 3 - 0
hide/Ide.hx

@@ -237,10 +237,12 @@ class Ide extends hide.tools.IdeData {
 
 		body.ondragenter = function(e:js.html.DragEvent) {
 			dragFunc(false, e);
+			return false;
 		};
 
 		body.ondragover = function(e:js.html.DragEvent) {
 			dragFunc(false, e);
+			return false;
 		};
 		body.ondrop = function(e:js.html.DragEvent) {
 			if(!dragFunc(true, e)) {
@@ -248,6 +250,7 @@ class Ide extends hide.tools.IdeData {
 					openFile(Reflect.field(f,"path"));
 				e.preventDefault();
 			}
+			return false;
 		}
 
 		if( subView != null ) body.className +=" hide-subview";