浏览代码

prevent onActivate() on drag

Nicolas Cannasse 6 年之前
父节点
当前提交
8d335f7a1c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hide/ui/View.hx

+ 2 - 0
hide/ui/View.hx

@@ -121,6 +121,8 @@ class View<T> extends hide.comp.Component {
 			destroy();
 		});
 		container.on("show", function(_) {
+			// we are dragging the container tab
+			if( container.parent.parent.config == null ) return;
 			haxe.Timer.delay(onActivate,0);
 		});
 		container.getElement().keydown(function(e) {