1
0
Fork 0
forked from 0x2620/oxjs

updating video elements (fixes bugs with positions and points)

This commit is contained in:
rlx 2011-09-17 07:09:17 +00:00
commit 3f90e96c3a
6 changed files with 44 additions and 24 deletions

View file

@ -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'
});
}