Fix the rest of mobile cases

This commit is contained in:
Cohee
2024-04-14 21:17:18 +03:00
parent e3f24ac3a0
commit 23ac23010d
4 changed files with 22 additions and 8 deletions

View File

@ -10239,10 +10239,13 @@ jQuery(async function () {
$(`.zoomed_avatar[forChar="${charname}"]`).css('display', 'flex');
dragElement(newElement);
if (power_user.zoomed_avatar_magnification)
if (power_user.zoomed_avatar_magnification) {
$('.zoomed_avatar_container').izoomify();
} else {
$(`.zoomed_avatar[forChar="${charname}"] .dragClose`).hide();
}
$('.zoomed_avatar').on('click', (e) => {
$('.zoomed_avatar, .zoomed_avatar .dragClose').on('click touchend', (e) => {
if (e.target.closest('.drag-grabber')) {
return;
}