mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix possible background swipe gestures on popups
This commit is contained in:
@@ -902,6 +902,9 @@ export function initRossMods() {
|
|||||||
if (power_user.gestures === false) {
|
if (power_user.gestures === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Popup.util.isPopupOpen()) {
|
||||||
|
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 ($('.mes_edit_buttons, .drawer-content, #character_popup, #dialogue_popup, #WorldInfo, #right-nav-panel, #left-nav-panel, #select_chat_popup, #floatingPrompt').is(':visible')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -917,6 +920,9 @@ export function initRossMods() {
|
|||||||
if (power_user.gestures === false) {
|
if (power_user.gestures === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Popup.util.isPopupOpen()) {
|
||||||
|
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 ($('.mes_edit_buttons, .drawer-content, #character_popup, #dialogue_popup, #WorldInfo, #right-nav-panel, #left-nav-panel, #select_chat_popup, #floatingPrompt').is(':visible')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user