From 31aa0f52ab3dd088d7bd13a2ba88a657ede77b32 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 21 Oct 2023 21:42:18 +0200 Subject: Remove stray debugging messages. --- public/common/client.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/common/client.js b/public/common/client.js index 13b0871..2b34487 100644 --- a/public/common/client.js +++ b/public/common/client.js @@ -1255,11 +1255,8 @@ var update_layout = function () {} let new_scale = Math.max(real_min_zoom, Math.min(MAX_ZOOM, transform1.scale + event.wheelDeltaY / 1200)) // snap to 1 if close - console.log("WHEEL ", new_scale, Math.abs(event.wheelDeltaY / 2400)) - if (Math.abs(1 - new_scale) < Math.abs(event.wheelDeltaY / 2400)) { - console.log("SNAP TO 1 ", Math.abs(event.wheelDeltaY / 2400)) + if (Math.abs(1 - new_scale) < Math.abs(event.wheelDeltaY / 2400)) new_scale = 1 - } transform1.x -= event.clientX transform1.y -= event.clientY -- cgit v1.2.3