diff --git a/public/index.html b/public/index.html index 7d2a539af..b7664775d 100644 --- a/public/index.html +++ b/public/index.html @@ -5950,7 +5950,7 @@
-
+
{ + $('.zoomed_avatar').on('mouseup', (e) => { if (e.target.closest('.drag-grabber')) { return; } @@ -10254,6 +10254,14 @@ jQuery(async function () { }); }); + $('.zoomed_avatar, .zoomed_avatar .dragClose').on('click touchend', (e) => { + if (e.target.closest('.dragClose')) { + $(`.zoomed_avatar[forChar="${charname}"]`).fadeOut(animation_duration, () => { + $(`.zoomed_avatar[forChar="${charname}"]`).remove(); + }); + } + }); + zoomedAvatarImgElement.on('dragstart', (e) => { console.log('saw drag on avatar!'); e.preventDefault();