There was an error while loading. Please reload this page.
1 parent 878881d commit 101e4cbCopy full SHA for 101e4cb
mfr/extensions/image/templates/viewer.mako
@@ -53,7 +53,8 @@
53
$(document).ready(function() {
54
55
## Reference on how mobile is detected: https://stackoverflow.com/a/10364620
56
- var isMobile = window.matchMedia("only screen and (max-width: 760px)");
+ ## var isMobile = window.matchMedia("only screen and (max-width: 760px)");
57
+ var isMobile = window.innerWidth <= 768;
58
59
## Enable the zoom feature only for desktop browsers
60
if (!isMobile.matches) {
0 commit comments