Showing
1 changed file
with
5 additions
and
0 deletions
| @@ -520,6 +520,11 @@ export struct ImageAndTextPageComponent { | @@ -520,6 +520,11 @@ export struct ImageAndTextPageComponent { | ||
| 520 | this.lastTimeoutId = setTimeout(() => { | 520 | this.lastTimeoutId = setTimeout(() => { |
| 521 | let offSetY = this.info?.globalPosition.y as number | 521 | let offSetY = this.info?.globalPosition.y as number |
| 522 | Logger.debug(TAG, "即将滚动至yOffset: " + (offSetY - 100)) | 522 | Logger.debug(TAG, "即将滚动至yOffset: " + (offSetY - 100)) |
| 523 | + if (offSetY >= (this.screenHeight-this.bottomHeight) ) { | ||
| 524 | + this.showMainText = true | ||
| 525 | + }else { | ||
| 526 | + this.showMainText = false | ||
| 527 | + } | ||
| 523 | //头部距离48 | 528 | //头部距离48 |
| 524 | this.scroller.scrollTo({ | 529 | this.scroller.scrollTo({ |
| 525 | yOffset: offSetY - 100, | 530 | yOffset: offSetY - 100, |
-
Please register or login to post a comment