Skip to content

Commit 950bd03

Browse files
committed
Remove the 'feature' where full-width images don't zoom
1 parent f51a107 commit 950bd03

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

dist/zoom-vanilla.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zoom-vanilla.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/zoom-vanilla.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
event.stopPropagation()
3737

3838
if (document.body.classList.contains('zoom-overlay-open')) return
39-
if (event.target.width >= (window.innerWidth - OFFSET)) return
4039

4140
if (event.metaKey || event.ctrlKey) return openInNewWindow()
4241

0 commit comments

Comments
 (0)