Skip to content

Commit ba7ea45

Browse files
JS-361: Magnifier is visible on mobile breakpoint
- code refactoring
1 parent 20b89b3 commit ba7ea45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/magnifier/magnifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166

167167
data[idx].lensH = data[idx].lensH > $thumb.height() ? $thumb.height() : data[idx].lensH;
168168

169-
if (data[idx].lensW < 1) {
169+
if (Math.round(data[idx].lensW) === 0) {
170170
lens.css('display', 'none');
171171
} else {
172172
lens.css({

0 commit comments

Comments
 (0)