We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72fd37e commit e8117f6Copy full SHA for e8117f6
2 files changed
src/core/handlers/handlers.utils.ts
@@ -24,7 +24,7 @@ export const handleCalculateButtonZoom = (
24
throw new Error("Wrapper is not mounted");
25
}
26
27
- const targetScale = scale * Math.exp(delta * step);
+ const targetScale = scale + delta * step;
28
29
const newScale = checkZoomBounds(
30
roundNumber(targetScale, 3),
src/core/wheel/wheel.utils.ts
@@ -86,7 +86,7 @@ export const handleCalculateWheelZoom = (
86
87
88
89
- const targetScale = scale + delta * (scale - scale * step) * step;
90
91
if (getTarget) return targetScale;
92
const paddingEnabled = disable ? false : !disabled;
0 commit comments