Commit a108c58a authored by Tt's avatar Tt

fix(play): 添加点击事件前的可见性检查

parent 295b95fe
......@@ -975,6 +975,8 @@ export class PlayComponent implements OnInit, OnDestroy {
// 注册点击事件处理函数
this.subscribeMapDownEvent(fishId, () => {
if (!fish.ref.visible) return;
if (!fish['child_paopao_bg'].ref.visible) return;
console.log('fish click', fish);
// 点击气泡时执行brokePaopao方法
this.brokePaopao(fish);
......
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