Skip to content

Commit

Permalink
Version 17:
Browse files Browse the repository at this point in the history
* Fixed script error when exporting a clip from the alerts tab.
* Playback controls will no longer fade out while export controls are active.
  • Loading branch information
bp2008 committed May 20, 2018
1 parent abd67af commit cd288f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui3.htm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
};
</script>
<script type="text/javascript">
var ui_version = "16";
var ui_version = "17";
var bi_version = "%%VERSION%%";
var combined_version = ui_version + "-" + bi_version;
//if (!!navigator.userAgent.match(/ Android /))
Expand Down
12 changes: 8 additions & 4 deletions ui3/ui3.js
Original file line number Diff line number Diff line change
Expand Up @@ -3871,7 +3871,7 @@ function PlaybackControls()
if (isVisible)
{
CloseSettings();
if (self.IsSeekbarDragging())
if (self.IsSeekbarDragging() || exportControls.IsEnabled())
return;
$pc.stop(true, true);
$pc.fadeOut(100);
Expand Down Expand Up @@ -4679,7 +4679,7 @@ function ExportControls()
exportOffsetStart.resized();
exportOffsetEnd.resized();

var labelFontSize = Clamp(w * 0.04, 12, 18);
var labelFontSize = Clamp(w * 0.04, 11, 18);
$exportControlsStatus.css('font-size', labelFontSize + 'px');
$exportControlsStatus.css('line-height', labelFontSize + 'px');

Expand All @@ -4689,6 +4689,10 @@ function ExportControls()
{
return exportOffsetStart.IsDragging() || exportOffsetEnd.IsDragging();
}
this.IsEnabled = function ()
{
return controlsEnabled;
}
this.mouseMove = function (e)
{
var r1 = exportOffsetStart.mouseMove(e);
Expand Down Expand Up @@ -4758,7 +4762,7 @@ function ExportControls()
if ((clipData.flags & alert_flag_offsetMs) !== 0)
{
startTime = clipData.offsetMs / fileDuration;
endTime = (startTimeMs + clipData.roughLengthMs) / fileDuration;
endTime = (clipData.offsetMs + clipData.roughLengthMs) / fileDuration;
}

exportOffsetStart.setClipData(clipData);
Expand All @@ -4771,7 +4775,7 @@ function ExportControls()
$exportControlsExportBtn.removeAttr('disabled');

var $selectOffsetsMessage = $('<div class="exportOffsetMessage">Choose offsets by dragging the handles</div>');
var labelFontSize = Clamp($layoutBottom.width() * 0.04, 12, 18);
var labelFontSize = Clamp($layoutBottom.width() * 0.04, 9, 18);
$selectOffsetsMessage.css('font-size', labelFontSize + 'px');
$selectOffsetsMessage.fadeIn(function ()
{
Expand Down

0 comments on commit cd288f5

Please sign in to comment.