提交 ef6c1498 编写于 作者: E Eric Seidel

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
上级 f63c11ca
......@@ -26,9 +26,11 @@ static inline sky::EventType EventTypeFromUITouchPhase(UITouchPhase phase) {
// with the same coordinates
return sky::EVENT_TYPE_POINTER_MOVE;
case UITouchPhaseEnded:
return sky::EVENT_TYPE_POINTER_UP;
case UITouchPhaseCancelled:
return sky::EVENT_TYPE_POINTER_CANCEL;
// We treat all cancels for raw touches as ups.
// All pointers hit UITouchPhaseCancelled as soon as a
// gesture is recognized.
return sky::EVENT_TYPE_POINTER_UP;
}
return sky::EVENT_TYPE_UNKNOWN;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册