Browse Source

fix: Avoid Cannot read property 'left' of undefined (#541)

Avoid Cannot read property 'left' of undefined

Co-authored-by: Chad Liu <chadliu23@happytv.com.tw>
DIYgod 5 years ago
parent
commit
15cbdb779a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/fullscreen.js

+ 1 - 1
src/js/fullscreen.js

@@ -3,7 +3,7 @@ import utils from './utils';
 class FullScreen {
     constructor (player) {
         this.player = player;
-
+        this.lastScrollPosition = {left: 0, top: 0};
         this.player.events.on('webfullscreen', () => {
             this.player.resize();
         });