From c9c0f4650ddcbfe49ae4f9e999195b31513f9920 Mon Sep 17 00:00:00 2001 From: Artem Halushko Date: Thu, 21 May 2020 19:12:22 +0300 Subject: [PATCH] update position on change min time --- .../widget/trip-animation/trip-animation.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts b/ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts index c8afaee548..8690119e87 100644 --- a/ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts @@ -103,7 +103,7 @@ export class TripAnimationComponent implements OnInit, AfterViewInit { this.historicalData = parseArray(this.ctx.data).filter(arr => arr.length); if (this.historicalData.length) { this.calculateIntervals(); - this.timeUpdated(this.currentTime ? this.currentTime : this.minTime); + this.timeUpdated(this.currentTime && this.currentTime > this.minTime ? this.currentTime : this.minTime); } this.mapWidget.map.map?.invalidateSize(); this.cd.detectChanges();