瀏覽代碼

MemProfiler: fix drag & drop

lviguier 3 月之前
父節點
當前提交
53ca59f5d7
共有 1 個文件被更改,包括 3 次插入0 次删除
  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";