Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ef6c149

Browse files
committed
Treat all UITouchPhaseCancelled on raw touches as pointerUp instead of pointerCancel.
On iOS as soon as a gesture recognizer takes over it cancels all outstanding touches. R=@abarth
1 parent f63c11c commit ef6c149

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sky/shell/ios/sky_surface.mm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@
2626
// with the same coordinates
2727
return sky::EVENT_TYPE_POINTER_MOVE;
2828
case UITouchPhaseEnded:
29-
return sky::EVENT_TYPE_POINTER_UP;
3029
case UITouchPhaseCancelled:
31-
return sky::EVENT_TYPE_POINTER_CANCEL;
30+
// We treat all cancels for raw touches as ups.
31+
// All pointers hit UITouchPhaseCancelled as soon as a
32+
// gesture is recognized.
33+
return sky::EVENT_TYPE_POINTER_UP;
3234
}
3335

3436
return sky::EVENT_TYPE_UNKNOWN;

0 commit comments

Comments
 (0)