mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
gallery: fix js error on digit-keypress viewing pics
This commit is contained in:
parent
a70ecd7af0
commit
03f53f6392
|
@ -277,8 +277,8 @@ window.baguetteBox = (function () {
|
|||
playpause();
|
||||
else if (k == "KeyU" || k == "KeyO")
|
||||
relseek(k == "KeyU" ? -10 : 10);
|
||||
else if (k.indexOf('Digit') === 0)
|
||||
vid().currentTime = vid().duration * parseInt(k.slice(-1)) * 0.1;
|
||||
else if (k.indexOf('Digit') === 0 && v)
|
||||
v.currentTime = v.duration * parseInt(k.slice(-1)) * 0.1;
|
||||
else if (k == "KeyM" && v) {
|
||||
v.muted = vmute = !vmute;
|
||||
mp_ctl();
|
||||
|
|
Loading…
Reference in a new issue