[Webkit-unassigned] [Bug 141456] TouchEvent.cancelable is always true
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 13 01:08:15 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=141456
--- Comment #2 from Rick Byers <rbyers at chromium.org> ---
> If I understand correctly, Event.cancelable would be true if and only if Event.preventDefault() can cancel the native actions. If the actions have started OR if preventDefault() was called on a previous event, then it is false.
In chromium we set it true if and only if preventDefault will cancel the native action for _that_ event (i.e. whether we're waiting to hear the disposition before scrolling) - previous events have nothing to do with it. But that makes sense for us because we support (re)starting scrolling by not calling preventDefault on a touchmove after a sequence of touchmove's where preventDefault was called. So each event is really independent for us.
In Safari if scrolling has already been prevented, then I think it makes the most sense to still have cancelable=true. Just because there are no native actions for an event doesn't mean you can't still 'cancel' the event. I expect developers to use 'cancelable=false' as a signal that something else is consuming the touch stream and they shouldn't be also moving something around (or the user will see "double handling"). Does that sound reasonable to you?
> If that's right that would be likely a one line change, I can do that.
Awesome, thanks! I hope this is just as simple.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150213/588b6be7/attachment-0002.html>
More information about the webkit-unassigned
mailing list