فهرست منبع

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) {