@hola.org/videojs-thumbnails
Advanced tools
Comparing version 0.1.1-10 to 0.1.1-11
{ | ||
"name": "@hola.org/videojs-thumbnails", | ||
"version": "0.1.1-10", | ||
"version": "0.1.1-11", | ||
"description": "progress bar thumbnails plugin for video.js", | ||
@@ -5,0 +5,0 @@ "main": "videojs.thumbnails.js", |
@@ -158,3 +158,3 @@ (function() { | ||
var seekBar = progressControl.seekBar; | ||
var el = seekBar.el(); | ||
var el = progressControl.el(); | ||
if (el.firstChild) | ||
@@ -170,4 +170,4 @@ el.insertBefore(div, el.firstChild); | ||
var pageXOffset = getScrollOffset().x; | ||
var clientRect = offsetParent(seekBar.el()).getBoundingClientRect(); | ||
var right = (clientRect.width || clientRect.right) + pageXOffset; | ||
var minLeft = seekBar.el().offsetLeft; | ||
var maxRight = minLeft+seekBar.el().offsetWidth; | ||
@@ -182,3 +182,3 @@ var pageX = event.pageX; | ||
// subtract the page offset of the positioned offset parent | ||
left -= offsetParent(seekBar.el()).getBoundingClientRect().left + | ||
left -= offsetParent(progressControl.el()).getBoundingClientRect().left + | ||
pageXOffset; | ||
@@ -223,6 +223,6 @@ | ||
// left side of the player | ||
if ((left + halfWidth) > right) { | ||
left = right - width; | ||
} else if (left < halfWidth) { | ||
left = 0; | ||
if (left + halfWidth > maxRight) { | ||
left = maxRight - width; | ||
} else if (left-halfWidth < minLeft) { | ||
left = minLeft; | ||
} else { | ||
@@ -229,0 +229,0 @@ left -= halfWidth; |
Sorry, the diff of this file is not supported yet
86103
318