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

728a233842245a7f56d0bd9585bcda2a89615bb2

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +2 -2Ignore whitespace
public/scripts/RossAscends-mods.js+2 -2
@@ -905,7 +905,7 @@ export function initRossMods() {
905905 if (Popup.util.isPopupOpen()) {
906906 return;
907907 }
908- if ($('.mes_edit_buttons, .drawer-content, #character_popup, #dialogue_popup, #WorldInfo, #right-nav-panel, #left-nav-panel, #select_chat_popup, #floatingPrompt').is(':visible')) {
908+ if (!$('#sheld').is(':focus-within')) {
909909 return;
910910 }
911911 var SwipeButR = $('.swipe_right:last');
@@ -923,7 +923,7 @@ export function initRossMods() {
923923 if (Popup.util.isPopupOpen()) {
924924 return;
925925 }
926- if ($('.mes_edit_buttons, .drawer-content, #character_popup, #dialogue_popup, #WorldInfo, #right-nav-panel, #left-nav-panel, #select_chat_popup, #floatingPrompt').is(':visible')) {
926+ if (!$('#sheld').is(':focus-within')) {
927927 return;
928928 }
929929 var SwipeButL = $('.swipe_left:last');