Allow mobile swipes with open panels if focused

- Allow mobile swipe gestures when sheld is focused, ignoring open panels or floating prompts present now
- Fixes #2753
This commit is contained in:
Wolfsblvt
2024-09-04 04:45:40 +02:00
parent 2db344538e
commit 728a233842

View File

@@ -905,7 +905,7 @@ export function initRossMods() {
if (Popup.util.isPopupOpen()) { if (Popup.util.isPopupOpen()) {
return; return;
} }
if ($('.mes_edit_buttons, .drawer-content, #character_popup, #dialogue_popup, #WorldInfo, #right-nav-panel, #left-nav-panel, #select_chat_popup, #floatingPrompt').is(':visible')) { if (!$('#sheld').is(':focus-within')) {
return; return;
} }
var SwipeButR = $('.swipe_right:last'); var SwipeButR = $('.swipe_right:last');
@@ -923,7 +923,7 @@ export function initRossMods() {
if (Popup.util.isPopupOpen()) { if (Popup.util.isPopupOpen()) {
return; return;
} }
if ($('.mes_edit_buttons, .drawer-content, #character_popup, #dialogue_popup, #WorldInfo, #right-nav-panel, #left-nav-panel, #select_chat_popup, #floatingPrompt').is(':visible')) { if (!$('#sheld').is(':focus-within')) {
return; return;
} }
var SwipeButL = $('.swipe_left:last'); var SwipeButL = $('.swipe_left:last');