From 05b8e8a6e0ed260801a4fe21f10656e86a47f8fd Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Thu, 22 Mar 2018 00:28:42 +1100 Subject: Restore as float (fixes #828) --- dist/plyr.polyfilled.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'dist/plyr.polyfilled.js') diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js index 20ab3e8b..413af127 100644 --- a/dist/plyr.polyfilled.js +++ b/dist/plyr.polyfilled.js @@ -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'); -- cgit v1.2.3