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
| @@ -905,7 +905,7 @@ export function initRossMods() { | ||
| 905 | 905 | if (Popup.util.isPopupOpen()) { |
| 906 | 906 | return; |
| 907 | 907 | } |
| 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')) { | |
| 909 | 909 | return; |
| 910 | 910 | } |
| 911 | 911 | var SwipeButR = $('.swipe_right:last'); |
| @@ -923,7 +923,7 @@ export function initRossMods() { | ||
| 923 | 923 | if (Popup.util.isPopupOpen()) { |
| 924 | 924 | return; |
| 925 | 925 | } |
| 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')) { | |
| 927 | 927 | return; |
| 928 | 928 | } |
| 929 | 929 | var SwipeButL = $('.swipe_left:last'); |