react-zoom-pan-pinch 3.0.6 → 3.0.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-zoom-pan-pinch",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Zoom and pan html elements in easy way",
5
5
  "author": "prc5",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@ export const handleCalculateButtonZoom = (
24
24
  throw new Error("Wrapper is not mounted");
25
25
  }
26
26
 
27
- const targetScale = scale * Math.exp(delta * step);
27
+ const targetScale = scale + delta * step;
28
28
 
29
29
  const newScale = checkZoomBounds(
30
30
  roundNumber(targetScale, 3),
@@ -86,7 +86,7 @@ export const handleCalculateWheelZoom = (
86
86
  throw new Error("Wrapper is not mounted");
87
87
  }
88
88
 
89
- const targetScale = scale + delta * (scale - scale * step) * step;
89
+ const targetScale = scale + delta * step;
90
90
 
91
91
  if (getTarget) return targetScale;
92
92
  const paddingEnabled = disable ? false : !disabled;