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

Method setPercY

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

* Set vertical scroll percent with animation * 设置垂直滚动百分比(带动画)

(value: number, bAnimate: boolean)

Source from the content-addressed store, hash-verified

295 * 设置垂直滚动百分比(带动画)
296 */
297 public setPercY(value: number, bAnimate: boolean): void {
298 this.setPosY(this._overlapHeight * clamp01(value), bAnimate);
299 }
300
301 /**
302 * Set horizontal position with animation

Callers 3

percYMethod · 0.95
scrollTopMethod · 0.95
scrollBottomMethod · 0.95

Calls 2

setPosYMethod · 0.95
clamp01Function · 0.85

Tested by

no test coverage detected