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:
1 parent
7c87f20ace
commit
6514e81804
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) {
|
||||
|
||||
Reference in new issue
Block a user