lyb-pixi-js 1.4.3 → 1.4.5

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.
@@ -31,7 +31,7 @@ export class LibPixiSpine extends Spine {
31
31
  follow: item.follow,
32
32
  onUpdate: item.onUpdate,
33
33
  angleFollow: item.angleFollow || false,
34
- scaleFollow: item.scaleFollow || true,
34
+ scaleFollow: item.scaleFollow === undefined ? true : item.scaleFollow,
35
35
  });
36
36
  });
37
37
  }
@@ -1,5 +1,5 @@
1
1
  import { Container } from "pixi.js";
2
- import { LibPixiContainer } from "../Base/LibPixiContainer";
2
+ import { LibPixiContainer } from '../Base/LibPixiContainer';
3
3
  export interface LibPixiScrollNumParams {
4
4
  /** 滚动区域宽度 */
5
5
  width: number;
@@ -1,6 +1,6 @@
1
1
  import { Graphics } from "pixi.js";
2
2
  import gsap from "gsap";
3
- import { LibPixiContainer } from "../Base/LibPixiContainer";
3
+ import { LibPixiContainer } from '../Base/LibPixiContainer';
4
4
  /** @description 通过鼠标或手指拖动数字列选择数字
5
5
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiScrollNum-数字滑动
6
6
  */
@@ -89,7 +89,7 @@ export class LibPixiScrollNum extends LibPixiContainer {
89
89
  this._currentIndex = index;
90
90
  gsap.to(this._slideArea, {
91
91
  y: -this._currentIndex * this._slideHeight + this._scrollHeight / 2,
92
- duration: 0.01,
92
+ duration: 0.1,
93
93
  onUpdate: () => {
94
94
  var _a;
95
95
  (_a = this._scrollCallback) === null || _a === void 0 ? void 0 : _a.call(this, this._slideArea.y, this._currentIndex);