mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Don't spiderfy/unspiderfy while a zoom is going on
This commit is contained in:
@@ -15,7 +15,7 @@ L.MarkerCluster.include({
|
||||
// 0 -> always spiral; Infinity -> always circle
|
||||
|
||||
spiderfy: function () {
|
||||
if (this._group._spiderfied === this) {
|
||||
if (this._group._spiderfied === this || this._group._inZoomAnimation) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,9 @@ L.MarkerCluster.include({
|
||||
},
|
||||
|
||||
unspiderfy: function () {
|
||||
|
||||
if (this._group._inZoomAnimation) {
|
||||
return;
|
||||
}
|
||||
this._animationUnspiderfy();
|
||||
|
||||
this._group._spiderfied = null;
|
||||
|
||||
Reference in New Issue
Block a user