forked from 0x2620/oxjs
use base 10 in parseInt, use Math.floor for numbers
This commit is contained in:
parent
79bb322112
commit
8bc8c57373
19 changed files with 44 additions and 45 deletions
|
|
@ -241,7 +241,7 @@ Ox.BlockVideoTimeline = function(options, self) {
|
|||
var position = Math.round(self.options[point]);
|
||||
self.$pointMarker[point].css({
|
||||
left: (position % self.options.width) + 'px',
|
||||
top: (parseInt(position / self.options.width) *
|
||||
top: (Math.floor(position / self.options.width) *
|
||||
(self.height + self.margin) + 15) + 'px'
|
||||
});
|
||||
}
|
||||
|
|
@ -250,7 +250,7 @@ Ox.BlockVideoTimeline = function(options, self) {
|
|||
var position = Math.round(self.options.position);
|
||||
self.$positionMarker.css({
|
||||
left: (position % self.options.width) - 1 + 'px',
|
||||
top: (parseInt(position / self.options.width) *
|
||||
top: (Math.floor(position / self.options.width) *
|
||||
(self.height + self.margin) + 2) + 'px'
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue