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.
This commit is contained in:
OneWay committed 2026-10-04 12:06:00 +00:00
1 parent 1202662afe
commit 6146c0ebfe
1 file changed
+1 -3
@@ -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) {