Browse Source

Update controller.js

A-Circle Zhang 6 years ago
parent
commit
156552be97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/controller.js

+ 1 - 1
src/js/controller.js

@@ -85,7 +85,7 @@ class Controller {
         if (this.player.options.video.thumbnails) {
             this.thumbnails = new Thumbnails({
                 container: this.player.template.barPreview,
-                barWidth: this.player.template.barWrap.offsetWidth,
+                barWrap: this.player.template.barWrap,
                 url: this.player.options.video.thumbnails,
                 events: this.player.events
             });