forked from 0x2620/oxjs
updating video elements (fixes bugs with positions and points)
This commit is contained in:
parent
3c419d3ee7
commit
3f90e96c3a
6 changed files with 44 additions and 24 deletions
|
|
@ -199,9 +199,10 @@ Ox.BlockVideoTimeline = function(options, self) {
|
|||
}
|
||||
|
||||
function setPositionMarker() {
|
||||
var position = Math.round(self.options.position);
|
||||
self.$positionMarker.css({
|
||||
left: (self.options.position % self.options.width) - 1 + 'px',
|
||||
top: (parseInt(self.options.position / self.options.width) *
|
||||
left: (position % self.options.width) - 1 + 'px',
|
||||
top: (parseInt(position / self.options.width) *
|
||||
(self.height + self.margin) + 2) + 'px'
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue