Commit b3a6f823 authored by techird's avatar techird

fix root drag problem

parent 77cbacc1
...@@ -30,8 +30,7 @@ var ViewDragger = kity.createClass("ViewDragger", { ...@@ -30,8 +30,7 @@ var ViewDragger = kity.createClass("ViewDragger", {
this._minder.on('normal.mousedown readonly.mousedown readonly.touchstart', function(e) { this._minder.on('normal.mousedown readonly.mousedown readonly.touchstart', function(e) {
// 点击未选中的根节点临时开启 // 点击未选中的根节点临时开启
if (e.getTargetNode() == this.getRoot() && if (e.getTargetNode() == this.getRoot()) {
(!this.getRoot().isSelected() || !this.isSingleSelect())) {
lastPosition = e.getPosition(); lastPosition = e.getPosition();
isRootDrag = true; isRootDrag = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment