diff options
-rw-r--r-- | public/common/client.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/common/client.js b/public/common/client.js index 8168250..6dd38f2 100644 --- a/public/common/client.js +++ b/public/common/client.js @@ -901,9 +901,12 @@ var update_layout = function () {} /* PAN & ZOOM GAME BOARD */ ;(function panzoom_init() { + var PAN_SPEED = Number(document.querySelector("main").dataset.panSpeed) || 1 var MIN_ZOOM = Number(document.querySelector("main").dataset.minZoom) || 0.5 var MAX_ZOOM = Number(document.querySelector("main").dataset.maxZoom) || 1.5 + scroll_with_middle_mouse("main", PAN_SPEED) + const THRESHOLD = 0.0625 const DECELERATION = 125 |