Don't close drawer on clicks inside world popup

This commit is contained in:
SillyLossy
2023-03-27 19:00:05 +03:00
parent 0e97d26645
commit 4d73ee7dd8

View File

@ -4216,7 +4216,7 @@ $(document).ready(function () {
$("html").on('touchstart mousedown', function (e) { $("html").on('touchstart mousedown', function (e) {
var clickTarget = $(e.target); var clickTarget = $(e.target);
const forbiddenTargets = ['#character_cross', '#avatar-and-name-block', '#shadow_popup']; const forbiddenTargets = ['#character_cross', '#avatar-and-name-block', '#shadow_popup', '#world_popup'];
for (const id of forbiddenTargets) { for (const id of forbiddenTargets) {
if (clickTarget.closest(id).length > 0) { if (clickTarget.closest(id).length > 0) {
return; return;