Skip to content

Commit 9963baf

Browse files
committed
Merge branch 'feature/image-popup-fix' into develop
[ENG-9124]
2 parents 6a51169 + 4475561 commit 9963baf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mfr/extensions/image/templates/viewer.mako

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
5353
$(document).ready(function() {
5454
55-
## Reference on how mobile is detected: https://stackoverflow.com/a/10364620
56-
var isMobile = window.matchMedia("only screen and (max-width: 760px)");
55+
var isMobile = window.innerWidth <= 768;
5756
5857
## Enable the zoom feature only for desktop browsers
5958
if (!isMobile.matches) {

0 commit comments

Comments
 (0)