diff --git a/js/lib/VideoData.js b/js/lib/VideoData.js index 9bf2481..08f99f9 100644 --- a/js/lib/VideoData.js +++ b/js/lib/VideoData.js @@ -111,6 +111,10 @@ class VideoData { } panHandler(event) { + if(!this.resizer) { + this.destroy(); + return; + } this.resizer.panHandler(event); }