@mpxjs/webpack-plugin 2.10.13 → 2.10.14

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.
@@ -662,7 +662,7 @@ const SwiperWrapper = forwardRef((props, ref) => {
662
662
  const moveDistance = e[strAbso] - preAbsolutePos.value;
663
663
  const eventData = {
664
664
  translation: moveDistance,
665
- transdir: moveDistance !== 0 ? moveDistance : e[strAbso] - moveTranstion.value
665
+ transdir: moveDistance
666
666
  };
667
667
  // 1. 支持滑动中超出一半更新索引的能力:只更新索引并不会影响onFinalize依据当前offset计算的索引
668
668
  const { half } = computeHalf(eventData);
@@ -755,7 +755,7 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
755
755
  const moveDistance = e[strAbso] - preAbsolutePos.value
756
756
  const eventData = {
757
757
  translation: moveDistance,
758
- transdir: moveDistance !== 0 ? moveDistance : e[strAbso] - moveTranstion.value
758
+ transdir: moveDistance
759
759
  }
760
760
  // 1. 支持滑动中超出一半更新索引的能力:只更新索引并不会影响onFinalize依据当前offset计算的索引
761
761
  const { half } = computeHalf(eventData)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.13",
3
+ "version": "2.10.14",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -100,5 +100,5 @@
100
100
  "engines": {
101
101
  "node": ">=14.14.0"
102
102
  },
103
- "gitHead": "1b4a2d4765341ef6c6b74e501f72a0f856f247f9"
103
+ "gitHead": "536dff4513afc027834932deef4c0f8b4c365612"
104
104
  }