Commit efb43eff authored by Chen Jiping's avatar Chen Jiping

fix:修复滚动条,部署值无法显示的问题

parent c1ee4838
......@@ -935,14 +935,14 @@ export class PlayComponent implements OnInit, OnDestroy {
let dH = 24 * this.mapScale;
//如果句子不在可视窗口,则进行定位滚动
if(offsetY < Math.floor(this.initY) || offsetY > Math.floor(this.initY + this.sentenceBg.height)){
if(offsetY < Math.floor(this.initY) || offsetY >= Math.floor(this.initY + this.sentenceBg.height)){
let dis = 0;
if(offsetY < Math.floor(this.initY)){
dis = Math.floor(this.initY) - offsetY;
}
else if(offsetY > Math.floor(this.initY + this.sentenceBg.height)){
else if(offsetY >= Math.floor(this.initY + this.sentenceBg.height)){
dis = -(offsetY - Math.floor(this.initY + this.sentenceBg.height) + h + dH);
}
......@@ -970,7 +970,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let offsetY = Math.floor(y - h / 2);
if(offsetY < Math.floor(this.initY) || (offsetY + h) > Math.floor(this.initY + this.sentenceBg.height)){
if(offsetY < Math.floor(this.initY) || (offsetY + Math.floor(h)) > Math.floor(this.initY + this.sentenceBg.height)){
sentence.visible = false;
this.indexLabelArr[i].visible = false;
}
......
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