src/widgets/Arrow.js
changeset 1073 687133dc13cf
parent 1072 ac1eacb3aa33
--- a/src/widgets/Arrow.js	Wed Sep 04 17:32:50 2024 +0200
+++ b/src/widgets/Arrow.js	Thu Oct 17 00:58:24 2024 +0200
@@ -114,7 +114,9 @@
     }
 
     moveToTime(_t) {
-      this.moveToX((this.width * _t) / this.media.duration);
+      if (this.media) {
+        this.moveToX((this.width * _t) / this.media.duration);
+      }
     }
 
     increment() {