MCPcopy Create free account
hub / github.com/esengine/esengine / scrollDown

Method scrollDown

packages/fairygui/src/scroll/ScrollPane.ts:357–363  ·  view source on GitHub ↗

* Scroll down * 向下滚动

(ratio: number = 1, bAnimate?: boolean)

Source from the content-addressed store, hash-verified

355 * 向下滚动
356 */
357 public scrollDown(ratio: number = 1, bAnimate?: boolean): void {
358 if (this.pageMode) {
359 this.setPosY(this._scrollY + this._viewHeight * ratio, bAnimate ?? false);
360 } else {
361 this.setPosY(this._scrollY + this.scrollStep * ratio, bAnimate ?? false);
362 }
363 }
364
365 /**
366 * Scroll left

Callers

nothing calls this directly

Calls 1

setPosYMethod · 0.95

Tested by

no test coverage detected