summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-21 21:42:18 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-22 11:42:12 +0200
commit31aa0f52ab3dd088d7bd13a2ba88a657ede77b32 (patch)
tree444ad23cce6d2bc08dae6a082e8799a35e04fd11
parent08f59e54c0c301cb340fc23545c222cefe1cf18a (diff)
downloadserver-31aa0f52ab3dd088d7bd13a2ba88a657ede77b32.tar.gz
Remove stray debugging messages.
-rw-r--r--public/common/client.js5
1 files changed, 1 insertions, 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