Commit b044527c authored by yu's avatar yu

1

parent adde6ec8
......@@ -236,7 +236,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
let data = target.data;
let item: any = this.layout_box.children.find((ch) => {
let dis = this.getDistances(target, ch);
if (dis < 65) {
let w = cc.find("word", ch);
if (dis < 65 && w.getComponent(cc.Label).string == "") {
return ch;
}
return null;
......
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