Fix possible background swipe gestures on popups
| @@ -902,6 +902,9 @@ export function initRossMods() { | ||
| 902 | 902 | if (power_user.gestures === false) { |
| 903 | 903 | return; |
| 904 | 904 | } |
| 905 | + if (Popup.util.isPopupOpen()) { | |
| 906 | + return; | |
| 907 | + } | |
| 905 | 908 | if ($('.mes_edit_buttons, .drawer-content, #character_popup, #dialogue_popup, #WorldInfo, #right-nav-panel, #left-nav-panel, #select_chat_popup, #floatingPrompt').is(':visible')) { |
| 906 | 909 | return; |
| 907 | 910 | } |
| @@ -917,6 +920,9 @@ export function initRossMods() { | ||
| 917 | 920 | if (power_user.gestures === false) { |
| 918 | 921 | return; |
| 919 | 922 | } |
| 923 | + if (Popup.util.isPopupOpen()) { | |
| 924 | + return; | |
| 925 | + } | |
| 920 | 926 | if ($('.mes_edit_buttons, .drawer-content, #character_popup, #dialogue_popup, #WorldInfo, #right-nav-panel, #left-nav-panel, #select_chat_popup, #floatingPrompt').is(':visible')) { |
| 921 | 927 | return; |
| 922 | 928 | } |