mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -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();
|
playpause();
|
||||||
else if (k == "KeyU" || k == "KeyO")
|
else if (k == "KeyU" || k == "KeyO")
|
||||||
relseek(k == "KeyU" ? -10 : 10);
|
relseek(k == "KeyU" ? -10 : 10);
|
||||||
else if (k.indexOf('Digit') === 0)
|
else if (k.indexOf('Digit') === 0 && v)
|
||||||
vid().currentTime = vid().duration * parseInt(k.slice(-1)) * 0.1;
|
v.currentTime = v.duration * parseInt(k.slice(-1)) * 0.1;
|
||||||
else if (k == "KeyM" && v) {
|
else if (k == "KeyM" && v) {
|
||||||
v.muted = vmute = !vmute;
|
v.muted = vmute = !vmute;
|
||||||
mp_ctl();
|
mp_ctl();
|
||||||
|
|
Loading…
Reference in a new issue