large timeline: use ints in subtitle css
This commit is contained in:
parent
709e8d2474
commit
da7b637948
1 changed files with 2 additions and 2 deletions
|
@ -218,8 +218,8 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
self.$subtitles[i] = $('<div>')
|
||||
.addClass('OxSubtitle' + (found ? ' OxHighlight' : ''))
|
||||
.css({
|
||||
left: (subtitle['in'] * self.fps) + 'px',
|
||||
width: (((subtitle.out - subtitle['in']) * self.fps) - 2) + 'px'
|
||||
left: Math.round(subtitle['in'] * self.fps) + 'px',
|
||||
width: Math.round(((subtitle.out - subtitle['in']) * self.fps) - 2) + 'px'
|
||||
})
|
||||
.html(Ox.highlight(
|
||||
subtitle.text, self.options.find, 'OxHighlight', true
|
||||
|
|
Loading…
Reference in a new issue