* Scroll up * 向上滚动
(ratio: number = 1, bAnimate?: boolean)
| 343 | * 向上滚动 |
| 344 | */ |
| 345 | public scrollUp(ratio: number = 1, bAnimate?: boolean): void { |
| 346 | if (this.pageMode) { |
| 347 | this.setPosY(this._scrollY - this._viewHeight * ratio, bAnimate ?? false); |
| 348 | } else { |
| 349 | this.setPosY(this._scrollY - this.scrollStep * ratio, bAnimate ?? false); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | /** |
| 354 | * Scroll down |