Browse Source

SceneEditor: prevent focus on double click of visibility icons

trethaller 6 years ago
parent
commit
b18038d5dc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hide/comp/SceneEditor.hx

+ 1 - 0
hide/comp/SceneEditor.hx

@@ -749,6 +749,7 @@ class SceneEditor {
 			if(tog.length == 0) {
 				tog = new Element('<i class="fa fa-eye visibility-toggle"/>').appendTo(el.find(".jstree-wholerow").first());
 				tog.click(function(e) {
+					e.stopPropagation();
 					if(curEdit.elements.indexOf(obj3d) >= 0)
 						setVisible(curEdit.elements, isHidden(obj3d));
 					else