From 41da0aaf636cbb1411c694839b4b2a7a569f1923 Mon Sep 17 00:00:00 2001 From: KonradowyPL Date: Wed, 13 Mar 2024 20:36:14 +0100 Subject: [PATCH] Fix player lagging behind when zooming --- .../src/main/resources/extracted/web/css/dynmap_style.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DynmapCore/src/main/resources/extracted/web/css/dynmap_style.css b/DynmapCore/src/main/resources/extracted/web/css/dynmap_style.css index c699f5a1..2acfd46c 100644 --- a/DynmapCore/src/main/resources/extracted/web/css/dynmap_style.css +++ b/DynmapCore/src/main/resources/extracted/web/css/dynmap_style.css @@ -570,6 +570,14 @@ transition: all 0.6s ease-in-out 0s; } +/* do not animate player movements when zooming */ +.dynmap .leaflet-zoom-anim .leaflet-zoom-animated { + -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1); + -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1); + -o-transition: transform 0.25s cubic-bezier(0,0,0.25,1); + transition: transform 0.25s cubic-bezier(0,0,0.25,1); +} + .dynmap .playerIcon { margin-top: -16px; margin-left: -16px;