Skip to content

Commit

Permalink
Fix zoom cursors when displaying svg
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 2, 2023
1 parent ec77aac commit a1b015a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filer/templates/admin/filer/image/expand.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
cursor: zoom-in;
}
body.scrolling img {
cursor: zoom-in;
cursor: zoom-out;
}
body.scrolling img.zoom {
cursor: zoom-in;
Expand All @@ -21,7 +21,7 @@
<script>
setInterval(function () {
const img = document.getElementById('img')
document.body.classList.toggle('scrolling', img.width > document.body.clientWidth)
document.body.classList.toggle('scrolling', img.naturalWidth >= document.body.clientWidth)
}, 200);
</script>
</body>
Expand Down

0 comments on commit a1b015a

Please sign in to comment.