mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
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:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user