DescriptionAllow touch events to be uncancelable
The touchevents specification says (http://www.w3.org/TR/touch-events/#list-of-touchevent-types) that touchcancel events should not be cancelable.
We'd also like to allow other touch events (touchmove and touchend) to sometimes be uncancelable (sent async) as well, so rather than special-case touchcancel here we plumb a bit from the browser. This leaves the decision over which events are cancelable purely in the hands of the browser (except for edge cases around synthetic events), which makes sense because only the browser can know whether it plans to wait for an ACK for the event before proceeding with gesture recognition.
Note that I can't properly test this in a layout test without changing EventSender in the chromium repo, but I can't change EventSender until WebTouchEvent has changed. So there's no avoiding a 3-sided patch here. Once the first 2 CLs have landed I'll land a new LayoutTest before marking bug 365681 as Fixed.
BUG=365681, 361306
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172329
Patch Set 1 #Patch Set 2 : Tweaks #Patch Set 3 : Fix build on some platforms #
Messages
Total messages: 9 (0 generated)
|