Restore as float (fixes #828)

This commit is contained in:
Sam Potts
2018-03-22 00:28:42 +11:00
parent f998b996fa
commit 05b8e8a6e0
9 changed files with 23 additions and 11 deletions

View File

@ -12200,6 +12200,12 @@ var source = {
// License: The MIT License (MIT)
// ==========================================================================
// Private properties
// TODO: Use a WeakMap for private globals
// const globals = new WeakMap();
// Plyr instance
var Plyr$1 = function () {
function Plyr(target, options) {
var _this = this;
@ -12996,8 +13002,8 @@ var Plyr$1 = function () {
targetTime = this.duration;
}
// Set
this.media.currentTime = targetTime.toFixed(4);
// Set with slightly reduced accuracy
this.media.currentTime = parseFloat(targetTime.toFixed(4));
// Logging
this.debug.log('Seeking to ' + this.currentTime + ' seconds');