check visibility, add quater css
This commit is contained in:
parent
f9b30f1fd8
commit
c32d2ec57a
2 changed files with 9 additions and 4 deletions
|
|
@ -173,8 +173,9 @@ function renderAnnotation(config, video, root, clip) {
|
|||
updatePlayer(video, frame, annotation['in'], annotation['out'], src, config)
|
||||
}
|
||||
}))
|
||||
console.log('add resize')
|
||||
window.addEventListener('resize', () => {
|
||||
var visible = isElementInViewport(frame);
|
||||
var visible = video._frame == frame;
|
||||
if (config.loaded && visible) {
|
||||
updatePlayerRect(video, frame, config)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue