mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-05 21:46:49 +01:00
Disable swipe gestures while in edit mode
This commit is contained in:
parent
725cfdebca
commit
83182245d6
@ -933,6 +933,12 @@ export function initRossMods() {
|
||||
if (!$(e.target).closest('#sheld').length) {
|
||||
return;
|
||||
}
|
||||
if ($('#curEditTextarea')) {
|
||||
// Don't swipe while in text edit mode
|
||||
// the ios selection gestures get picked up
|
||||
// as swipe gestures
|
||||
return;
|
||||
}
|
||||
var SwipeButR = $('.swipe_right:last');
|
||||
var SwipeTargetMesClassParent = $(e.target).closest('.last_mes');
|
||||
if (SwipeTargetMesClassParent !== null) {
|
||||
@ -951,6 +957,12 @@ export function initRossMods() {
|
||||
if (!$(e.target).closest('#sheld').length) {
|
||||
return;
|
||||
}
|
||||
if ($('#curEditTextarea')) {
|
||||
// Don't swipe while in text edit mode
|
||||
// the ios selection gestures get picked up
|
||||
// as swipe gestures
|
||||
return;
|
||||
}
|
||||
var SwipeButL = $('.swipe_left:last');
|
||||
var SwipeTargetMesClassParent = $(e.target).closest('.last_mes');
|
||||
if (SwipeTargetMesClassParent !== null) {
|
||||
|
Loading…
Reference in New Issue
Block a user