From c5453be09c71719850cef682b53c56401252e4ca Mon Sep 17 00:00:00 2001 From: Henrikas Elsbergas Date: Tue, 10 Jan 2017 14:15:49 +0200 Subject: [PATCH] Making sure indicator time is positive --- src/webui/client/modules/performances/views/timelines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/client/modules/performances/views/timelines.js b/src/webui/client/modules/performances/views/timelines.js index b334ea2cd..99d6d1c54 100644 --- a/src/webui/client/modules/performances/views/timelines.js +++ b/src/webui/client/modules/performances/views/timelines.js @@ -560,7 +560,7 @@ define(['application', 'marionette', './templates/timelines.tpl', 'd3', 'bootbox }, moveIndicator: function (time) { if (!this.running || this.paused) { - this.ui.runIndicator.css('left', time * this.config.pxPerSec); + this.ui.runIndicator.css('left', Math.max(time, 0) * this.config.pxPerSec); this.updateIndicatorTime(); } },