From 6146c0ebfef1b2e3da5de91c798b06f5b03a18b7 Mon Sep 17 00:00:00 2001 From: OneWay Date: Sun, 4 Oct 2026 12:06:00 +0000 Subject: [PATCH] fix(article): cancel link press only after touch slop An already-consumed down change is part of another gesture, not a reason to cancel the link press. Only treat movement past touch slop as cancellation. --- .../java/com/example/research/ui/article/ArticleLinkText.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/example/research/ui/article/ArticleLinkText.kt b/app/src/main/java/com/example/research/ui/article/ArticleLinkText.kt index f1c0d63..a8fe8f1 100644 --- a/app/src/main/java/com/example/research/ui/article/ArticleLinkText.kt +++ b/app/src/main/java/com/example/research/ui/article/ArticleLinkText.kt @@ -196,9 +196,7 @@ private suspend fun PointerInputScope.detectReferenceTaps( if (change == null) { break } - if (change.isConsumed || - (change.position - downPosition).getDistance() > viewConfiguration.touchSlop - ) { + if ((change.position - downPosition).getDistance() > viewConfiguration.touchSlop) { canceled = true } if (!change.pressed) {