Skip to content

Commit 30fc490

Browse files
authored
Make zoom working in FireFox also
1 parent b7965a1 commit 30fc490

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_templates/default.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
if (w1 < w0) {
3939
var zoom = Math.floor(w1 * 100 / w0);
4040
document.body.style.zoom = "" + zoom + "%";
41+
document.body.style.MozTransform = 'scale(0.' + zoom + ')';
42+
document.body.style.MozTransformOrigin = '0 0';
4143
} else {
4244
document.body.style.zoom = "";
45+
document.body.style.MozTransform = '';
4346
}
4447
};
4548
$(function() {

0 commit comments

Comments
 (0)