Only close on left click

This commit is contained in:
Kristan Schlikow 2024-04-15 20:38:59 +02:00
parent 2fcbefc9f5
commit d4d23f8234
No known key found for this signature in database
GPG Key ID: B92ED0CBF4AD31EA
1 changed files with 1 additions and 1 deletions

View File

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