diff options
author | Sam Potts <sam@potts.es> | 2018-03-22 00:28:42 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-03-22 00:28:42 +1100 |
commit | 05b8e8a6e0ed260801a4fe21f10656e86a47f8fd (patch) | |
tree | a7e71df51ef194cd1f51f45ee5023d93b13c5ec0 /dist/plyr.polyfilled.js | |
parent | f998b996faf2763b31cd093a42835bae142e9671 (diff) | |
download | plyr-05b8e8a6e0ed260801a4fe21f10656e86a47f8fd.tar.lz plyr-05b8e8a6e0ed260801a4fe21f10656e86a47f8fd.tar.xz plyr-05b8e8a6e0ed260801a4fe21f10656e86a47f8fd.zip |
Restore as float (fixes #828)
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r-- | dist/plyr.polyfilled.js | 10 |
1 files changed, 8 insertions, 2 deletions
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'); |