Browse Source

prevent onActivate() on drag

Nicolas Cannasse 6 years ago
parent
commit
8d335f7a1c
1 changed files with 2 additions and 0 deletions
  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) {