浏览代码

SceneEditor: prevent focus on double click of visibility icons

trethaller 6 年之前
父节点
当前提交
b18038d5dc
共有 1 个文件被更改,包括 1 次插入0 次删除
  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