We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a51169 commit 4475561Copy full SHA for 4475561
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