diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index 69bd7c7a0..26a4f9fc5 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -933,6 +933,12 @@ export function initRossMods() { if (!$(e.target).closest('#sheld').length) { return; } + if ($('#curEditTextarea').length) { + // 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').length) { + // 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) {