diff --git a/panorama-viewer.js b/panorama-viewer.js index 0ff5b76..9a75c76 100644 --- a/panorama-viewer.js +++ b/panorama-viewer.js @@ -186,7 +186,7 @@ let zoom = 3; viewer.addEventListener("wheel", (evt) => { console.log(evt.deltaY); - zoom = Math.max(zoom + evt.deltaY * 0.75, minZoom); + zoom = Math.max(zoom * (1 - evt.deltaY * 0.005), minZoom); evt.preventDefault(); });