Merge pull request #2093 from Dakraid/feature/fix-zoomed-avatar-click

Fix right click closing the zoomed avatar image
This commit is contained in:
Cohee 2024-04-15 21:44:32 +03:00 committed by GitHub
commit f1c96eb689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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