Merge pull request #2093 from Dakraid/feature/fix-zoomed-avatar-click
Fix right click closing the zoomed avatar image
This commit is contained in:
commit
f1c96eb689
|
@ -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, () => {
|
||||||
|
|
Loading…
Reference in New Issue