lyb-pixi-js 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,9 +50,8 @@ export declare class LibPixiScrollNum extends LibPixiContainer {
50
50
  updatePosition(y: number, index: number): void;
51
51
  /** @description 滑动到指定索引
52
52
  * @param index 页数索引
53
- * @param animate 是否需要过渡动画
54
53
  */
55
- slideTo(index: number, animate?: boolean): void;
54
+ slideTo(index: number): void;
56
55
  /** @description 设置滚动景深
57
56
  * @param containerList 元素列表
58
57
  * @param y 拖动Y坐标
@@ -57,9 +57,8 @@ export class LibPixiScrollNum extends LibPixiContainer {
57
57
  }
58
58
  /** @description 滑动到指定索引
59
59
  * @param index 页数索引
60
- * @param animate 是否需要过渡动画
61
60
  */
62
- slideTo(index, animate = true) {
61
+ slideTo(index) {
63
62
  var _a;
64
63
  if (index < 0) {
65
64
  // 回弹到第一张
@@ -90,7 +89,7 @@ export class LibPixiScrollNum extends LibPixiContainer {
90
89
  this._currentIndex = index;
91
90
  gsap.to(this._slideArea, {
92
91
  y: -this._currentIndex * this._slideHeight + this._scrollHeight / 2,
93
- duration: animate ? 0.25 : 0.01,
92
+ duration: 0.01,
94
93
  onUpdate: () => {
95
94
  var _a;
96
95
  (_a = this._scrollCallback) === null || _a === void 0 ? void 0 : _a.call(this, this._slideArea.y, this._currentIndex);