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

Commit f88d017

Browse files
committed
Merge pull request #337 from eseidelGoogle/touch_cancel
Treat all UITouchPhaseCancelled on raw touches as pointerUp instead o…
2 parents 2f79986 + ef6c149 commit f88d017

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)