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

Method scrollUp

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

* Scroll up * 向上滚动

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setPosYMethod · 0.95

Tested by

no test coverage detected