Skip to content

Commit 41da0aa

Browse files
committed
Fix player lagging behind when zooming
1 parent ea24554 commit 41da0aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

DynmapCore/src/main/resources/extracted/web/css/dynmap_style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,14 @@
570570
transition: all 0.6s ease-in-out 0s;
571571
}
572572

573+
/* do not animate player movements when zooming */
574+
.dynmap .leaflet-zoom-anim .leaflet-zoom-animated {
575+
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
576+
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
577+
-o-transition: transform 0.25s cubic-bezier(0,0,0.25,1);
578+
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
579+
}
580+
573581
.dynmap .playerIcon {
574582
margin-top: -16px;
575583
margin-left: -16px;

0 commit comments

Comments
 (0)