@mint-ui/map 0.1.5-beta → 0.1.6-beta

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.
@@ -44,9 +44,11 @@ function MapMarkerWrapper(_a) {
44
44
  }
45
45
  }, [movingState]);
46
46
  React.useEffect(function () {
47
- setMovingState(tslib.__assign(tslib.__assign({}, movingAnimation), {
48
- marker: markerRef.current
49
- }));
47
+ if (movingAnimation) {
48
+ setMovingState(tslib.__assign(tslib.__assign({}, movingAnimation), {
49
+ marker: markerRef.current
50
+ }));
51
+ }
50
52
  }, [movingAnimation]);
51
53
  var start = MarkerMovingHook.useMarkerMoving(movingState)[0];
52
54
 
package/dist/index.es.js CHANGED
@@ -1623,9 +1623,11 @@ function MapMarkerWrapper(_a) {
1623
1623
  }
1624
1624
  }, [movingState]);
1625
1625
  useEffect(function () {
1626
- setMovingState(__assign(__assign({}, movingAnimation), {
1627
- marker: markerRef.current
1628
- }));
1626
+ if (movingAnimation) {
1627
+ setMovingState(__assign(__assign({}, movingAnimation), {
1628
+ marker: markerRef.current
1629
+ }));
1630
+ }
1629
1631
  }, [movingAnimation]);
1630
1632
  var start = useMarkerMoving(movingState)[0];
1631
1633
 
package/dist/index.umd.js CHANGED
@@ -1629,9 +1629,11 @@
1629
1629
  }
1630
1630
  }, [movingState]);
1631
1631
  React.useEffect(function () {
1632
- setMovingState(tslib.__assign(tslib.__assign({}, movingAnimation), {
1633
- marker: markerRef.current
1634
- }));
1632
+ if (movingAnimation) {
1633
+ setMovingState(tslib.__assign(tslib.__assign({}, movingAnimation), {
1634
+ marker: markerRef.current
1635
+ }));
1636
+ }
1635
1637
  }, [movingAnimation]);
1636
1638
  var start = useMarkerMoving(movingState)[0];
1637
1639
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mint-ui/map",
3
- "version": "0.1.5-beta",
3
+ "version": "0.1.6-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "browser": "./dist/index.umd.js",