Commit 455a13bc authored by Marius DAVID's avatar Marius DAVID
Browse files

smother scrolling

parent 51d9aadc
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -307,8 +307,8 @@ async function init() {
			// This creates a smoother experience
			zoom -= e.deltaY * (0.001 * zoom)
		} else {
			if (e.deltaY > 0) zoom /= 2
			else if (e.deltaY < 0) zoom *= 2
			if (e.deltaY > 0) zoom /= 1.3
			else if (e.deltaY < 0) zoom *= 1.3
		}

		zoom = Math.max(minZoom, Math.min(maxZoom, zoom))