Skip to content

Commit

Permalink
Merge pull request #1274 from gebederry/fix-zoom-pan-lag
Browse files Browse the repository at this point in the history
fix: Severe lag when panning or zooming
  • Loading branch information
MichalD96 authored Oct 6, 2024
2 parents 062a6e9 + 7c1cfd6 commit 97c4879
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 29 deletions.
2 changes: 1 addition & 1 deletion assets/css/bootstrap.min.css

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions assets/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ const MapBase = {
zoomControl: false,
crs: L.CRS.Simple,
layers: [mapLayers[this.themeOverride || Settings.baseLayer]],
zoomSnap: 0,
zoomDelta: 0.5,
wheelPxPerZoomLevel: 70,
wheelDebounceTime: 150,
}).setView([this.viewportX, this.viewportY], this.viewportZoom);

MapBase.map.addControl(
Expand Down
48 changes: 24 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/coloris.min.css"/>
<link rel="stylesheet" href="assets/css/fancyselect.min.css"/>
<link rel="stylesheet" href="assets/css/styles.css?nocache=1593" />
<link rel="stylesheet" href="assets/css/tippy.css?nocache=1593" />
<link rel="stylesheet" href="assets/css/styles.css?nocache=1594" />
<link rel="stylesheet" href="assets/css/tippy.css?nocache=1594" />

<script>
const nocache = 1593;
const nocache = 1594;
</script>
</head>

Expand Down Expand Up @@ -1524,7 +1524,7 @@ <h4 class="modal-title" id="import-rdo-inventory-modal-title" data-text="menu.mo
<script src="assets/js/lib/fuse.min.js"></script>
<script src="assets/js/lib/bootstrap.min.js"></script>
<script src="assets/js/lib/fancyselect.min.js"></script>
<script src="assets/js/loader.js?nocache=1593"></script>
<script src="assets/js/loader.js?nocache=1594"></script>
<script src="assets/js/lib/popper.min.js"></script>
<script src="assets/js/lib/tippy-bundle.umd.min.js"></script>
<script src="assets/js/lib/leaflet.js"></script>
Expand All @@ -1535,26 +1535,26 @@ <h4 class="modal-title" id="import-rdo-inventory-modal-title" data-text="menu.mo
<script>var module = {};</script>
<script src="assets/js/lib/leaflet.canvas-markers.js"></script>
<script>module.exports(L);</script>
<script src="assets/js/layers.js?nocache=1593"></script>
<script src="assets/js/settings.js?nocache=1593"></script>
<script src="assets/js/mapping.js?nocache=1593"></script>
<script src="assets/js/nazar.js?nocache=1593"></script>
<script src="assets/js/fme.js?nocache=1593"></script>
<script src="assets/js/cycles.js?nocache=1593"></script>
<script src="assets/js/marker.js?nocache=1593"></script>
<script src="assets/js/inventory.js?nocache=1593"></script>
<script src="assets/js/treasures.js?nocache=1593"></script>
<script src="assets/js/legendary.js?nocache=1593"></script>
<script src="assets/js/pins.js?nocache=1593"></script>
<script src="assets/js/map.js?nocache=1593"></script>
<script src="assets/js/language.js?nocache=1593"></script>
<script src="assets/js/menu.js?nocache=1593"></script>
<script src="assets/js/items.js?nocache=1593"></script>
<script src="assets/js/category-collection.js?nocache=1593"></script>
<script src="assets/js/routes.js?nocache=1593"></script>
<script src="assets/js/pathfinder.main.js?nocache=1593"></script>
<script src="assets/js/updates.js?nocache=1593"></script>
<script src="assets/js/scripts.js?nocache=1593"></script>
<script src="assets/js/layers.js?nocache=1594"></script>
<script src="assets/js/settings.js?nocache=1594"></script>
<script src="assets/js/mapping.js?nocache=1594"></script>
<script src="assets/js/nazar.js?nocache=1594"></script>
<script src="assets/js/fme.js?nocache=1594"></script>
<script src="assets/js/cycles.js?nocache=1594"></script>
<script src="assets/js/marker.js?nocache=1594"></script>
<script src="assets/js/inventory.js?nocache=1594"></script>
<script src="assets/js/treasures.js?nocache=1594"></script>
<script src="assets/js/legendary.js?nocache=1594"></script>
<script src="assets/js/pins.js?nocache=1594"></script>
<script src="assets/js/map.js?nocache=1594"></script>
<script src="assets/js/language.js?nocache=1594"></script>
<script src="assets/js/menu.js?nocache=1594"></script>
<script src="assets/js/items.js?nocache=1594"></script>
<script src="assets/js/category-collection.js?nocache=1594"></script>
<script src="assets/js/routes.js?nocache=1594"></script>
<script src="assets/js/pathfinder.main.js?nocache=1594"></script>
<script src="assets/js/updates.js?nocache=1594"></script>
<script src="assets/js/scripts.js?nocache=1594"></script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-39999584-4"></script>
Expand Down

0 comments on commit 97c4879

Please sign in to comment.