Close zoomed image when clicking the parent div instead of image

Makes it easier to close on mobile
This commit is contained in:
Kristan Schlikow
2024-04-14 17:12:26 +02:00
parent 835d6c71fa
commit 928fa7a3fc
2 changed files with 1 additions and 3 deletions

View File

@@ -10241,7 +10241,7 @@ jQuery(async function () {
if (power_user.zoomed_avatar_magnification)
$('.zoomed_avatar_container').izoomify();
zoomedAvatarImgElement.on('click', (e) => {
$('.zoomed_avatar').on('click', (e) => {
$(`.zoomed_avatar[forChar="${charname}"]`).fadeOut();
setTimeout(function() { $(`.zoomed_avatar[forChar="${charname}"]`).remove(); }, 410);
});