Skip to content

Commit a1b015a

Browse files
committed
Fix zoom cursors when displaying svg
1 parent ec77aac commit a1b015a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

filer/templates/admin/filer/image/expand.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
cursor: zoom-in;
66
}
77
body.scrolling img {
8-
cursor: zoom-in;
8+
cursor: zoom-out;
99
}
1010
body.scrolling img.zoom {
1111
cursor: zoom-in;
@@ -21,7 +21,7 @@
2121
<script>
2222
setInterval(function () {
2323
const img = document.getElementById('img')
24-
document.body.classList.toggle('scrolling', img.width > document.body.clientWidth)
24+
document.body.classList.toggle('scrolling', img.naturalWidth >= document.body.clientWidth)
2525
}, 200);
2626
</script>
2727
</body>

0 commit comments

Comments
 (0)