work around Firefox volume control bug

This commit is contained in:
ccd0 committed 2014-03-04 20:50:06 -08:00
1 parent e4210300ce
commit 5698ebfdca
1 file changed
+3
+3
View File
@@ -106,6 +106,9 @@ function setupVideo(thumb, url) {
if (bottom > window.innerHeight) { if (bottom > window.innerHeight) {
window.scrollBy(0, bottom - window.innerHeight); window.scrollBy(0, bottom - window.innerHeight);
} }
// work around Firefox volume control bug
video.volume = Math.max(setting("videovolume") - 0.001, 0);
video.volume = setting("videovolume");
} }
// Hovering over thumbnail displays video // Hovering over thumbnail displays video