diff options
author | sanine <sanine.not@pm.me> | 2023-04-01 00:15:05 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-04-01 00:15:05 -0500 |
commit | 54c34ca3051743fd3f1c02f73a321299af456b8a (patch) | |
tree | 01241e3cb1cdcf8b06245914eb9b6a54ffc52831 /src/MapView.js | |
parent | 18ed948462bd71e4cb3b1e8fa3f55df84ef0ff33 (diff) |
attempt implementing convex hull algorithmtectonics
Diffstat (limited to 'src/MapView.js')
-rw-r--r-- | src/MapView.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/MapView.js b/src/MapView.js index 8f41480..0afa713 100644 --- a/src/MapView.js +++ b/src/MapView.js @@ -105,11 +105,12 @@ export class MapView { zoom(delta) { let scale; + const zoom = 1.1; if (delta < 0) { - scale = 2; + scale = zoom; } else { - scale = 1/2; + scale = 1/zoom; } this.scale *= scale; |