We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a51169 + 4475561 commit 9963bafCopy full SHA for 9963baf
mfr/extensions/image/templates/viewer.mako
@@ -52,8 +52,7 @@
52
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.innerWidth <= 768;
57
58
## Enable the zoom feature only for desktop browsers
59
if (!isMobile.matches) {
0 commit comments