Close zoomed image on click

This commit is contained in:
Kristan Schlikow 2024-04-14 16:12:13 +02:00
parent cde6639d8a
commit 384708f577
No known key found for this signature in database
GPG Key ID: B92ED0CBF4AD31EA
1 changed files with 5 additions and 0 deletions

View File

@ -10242,6 +10242,11 @@ jQuery(async function () {
$('.zoomed_avatar_container').izoomify();
$(`.zoomed_avatar[forChar="${charname}"] img`).on('click', (e) => {
$(`.zoomed_avatar[forChar="${charname}"]`).fadeOut();
setTimeout(function() { $(`.zoomed_avatar[forChar="${charname}"]`).remove(); }, 410);
});
$(`.zoomed_avatar[forChar="${charname}"] img`).on('dragstart', (e) => {
console.log('saw drag on avatar!');
e.preventDefault();