Skip to content

Commit 9f7ec39

Browse files
committed
Show zoom-out cursor on overlay
This also fixes the bug where the cursor of whatever is behind the overlay shows up when the overlay is present (which is pretty misleading). No idea why pointer-events were originally disabled; the upstream repo had it in its initial commit.
1 parent a51223e commit 9f7ec39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

css/zoom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ img.zoom-img {
1111
cursor: zoom-out;
1212
}
1313
.zoom-overlay {
14+
cursor: zoom-out;
1415
z-index: 420;
1516
background: #fff;
1617
position: fixed;
1718
top: 0;
1819
left: 0;
1920
right: 0;
2021
bottom: 0;
21-
pointer-events: none;
2222
filter: "alpha(opacity=0)";
2323
opacity: 0;
2424
transition: opacity 300ms;

dist/zoom.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)