From 83182245d66001e1bb874a9f1572ceec08f20fbd Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Thu, 17 Oct 2024 08:29:33 +0700 Subject: [PATCH 1/2] Disable swipe gestures while in edit mode --- public/scripts/RossAscends-mods.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index 69bd7c7a0..bcea77223 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')) { + // 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) { From c837c2ed157e01f78d31c0ba952d2ef1d56b29ac Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Thu, 17 Oct 2024 09:10:27 +0700 Subject: [PATCH 2/2] js empty --- public/scripts/RossAscends-mods.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index bcea77223..26a4f9fc5 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -933,7 +933,7 @@ export function initRossMods() { if (!$(e.target).closest('#sheld').length) { return; } - if ($('#curEditTextarea')) { + if ($('#curEditTextarea').length) { // Don't swipe while in text edit mode // the ios selection gestures get picked up // as swipe gestures @@ -957,7 +957,7 @@ export function initRossMods() { if (!$(e.target).closest('#sheld').length) { return; } - if ($('#curEditTextarea')) { + if ($('#curEditTextarea').length) { // Don't swipe while in text edit mode // the ios selection gestures get picked up // as swipe gestures