Browse Source

Fix a mistake introduced in f67d2e230b18325da1b74de36b03592add0832f4

Spotted by @michaelkuhn
jvoisin 1 year ago
parent
commit
605eeb4525
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/ui/static/js/app.js

+ 1 - 1
internal/ui/static/js/app.js

@@ -781,7 +781,7 @@ function handleMediaControl(button) {
     enclosures.forEach((enclosure) => {
         switch (action) {
         case "seek":
-            enclosure.currentTime = Math.min(enclosure.currentTime + value, 0);
+            enclosure.currentTime = Math.max(enclosure.currentTime + value, 0);
             break;
         case "speed":
             // I set a floor speed of 0.25 to avoid too slow speed where it gives the impression it stopped.