Commit cdeb96a4 authored by Chen Jiping's avatar Chen Jiping

fix:修复横线和单词错误点击导致的问题

parent fd6c1e79
......@@ -2,7 +2,7 @@ import { Component, ElementRef, ViewChild, OnInit, Input, OnDestroy, HostListene
import {
Label,
MySprite, randomSortByArr, RichText, ShapeRect, tweenChange,
MySprite, randomSortByArr, removeItemFromArr, RichText, ShapeRect, tweenChange,
} from './Unit';
import { res, resAudio } from './resources';
......@@ -1212,10 +1212,20 @@ export class PlayComponent implements OnInit, OnDestroy {
for(let i = 0; i < this.lineSprArr.length; ++ i){
let lineSpr = this.lineSprArr[i];
removeItemFromArr(this.renderArr, lineSpr.bg);
lineSpr.bg.visible = false;
}
this.lineSprArr = [];
for(let i = 0; i < this.answerSprArr.length; ++ i){
let answerSpr = this.answerSprArr[i];
removeItemFromArr(this.renderArr, answerSpr.bg);
}
this.answerSprArr = [];
let mW = 800 * this.mapScale;
let mH = 397 * this.mapScale;
......
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