Fix right click closing the zoomed avatar image

This commit is contained in:
Kristan Schlikow
2024-04-15 20:35:38 +02:00
parent 341f02e425
commit 2fcbefc9f5

View File

@ -10260,7 +10260,7 @@ jQuery(async function () {
}
$('.zoomed_avatar').on('mouseup', (e) => {
if (e.target.closest('.drag-grabber')) {
if (e.target.closest('.drag-grabber') || e.button === 2) {
return;
}
$(`.zoomed_avatar[forChar="${charname}"]`).fadeOut(animation_duration, () => {