Commit 234db6e3 authored by rockyl's avatar rockyl

修复

parent 47e288c2
...@@ -288,7 +288,8 @@ export default class Container extends DisplayObject { ...@@ -288,7 +288,8 @@ export default class Container extends DisplayObject {
while (node.parent) { while (node.parent) {
let child = node; let child = node;
node = node.parent; node = node.parent;
path.unshift(node.getChildIndex(child)); let index = node.children.indexOf(child);
path.unshift(index);
if (node === untilNode) { if (node === untilNode) {
break; break;
} }
......
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