limit update speed a bit when being zoomed out far

This commit is contained in:
Matthias Wirth
2022-07-10 16:22:13 +02:00
parent 630bcc6280
commit b1ca7482f0
2 changed files with 28 additions and 25 deletions

View File

@@ -843,10 +843,10 @@ PlaneObject.prototype.updateIcon = function() {
if ( enableLabels && (!multiSelect || (multiSelect && this.selected)) &&
(
(ZoomLvl >= labelZoom && this.altitude != "ground")
|| (ZoomLvl >= labelZoomGround - 2 && this.speed > 5 && !this.fakeHex)
|| (ZoomLvl >= labelZoomGround + 0 && !this.fakeHex)
|| (ZoomLvl >= labelZoomGround + 1)
(zoomLvl >= labelZoom && this.altitude != "ground")
|| (zoomLvl >= labelZoomGround - 2 && this.speed > 5 && !this.fakeHex)
|| (zoomLvl >= labelZoomGround + 0 && !this.fakeHex)
|| (zoomLvl >= labelZoomGround + 1)
|| (this.selected && !SelectedAllPlanes)
)
) {