TouchEvents: cancelling second touchmove

Kornel Lesiński <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <op.w9ix3r0fte2ec8@aimac>
The spec says touchmove event is cancellable, but implementations have a  
quirk the spec doesn't mention: only the first touchmove event can be  
cancelled:

https://bugzilla.mozilla.org/show_bug.cgi?id=653009

 From a developer point of view this is a terrible misfeature I'd rather  
see removed. One touchmove event is not enough to reliably detect velocity  
and direction of finger movement, so it's very problematic when I want to  
allow vertical page scrolling and prevent scrolling on horizontal swipe  
gesture.

OTOH if it has to stay for web compatibility, then I'd rather see it  
documented to warn developers against it (that behavior looks like a  
bug/race condition in the code when sometimes scrolling works and  
sometimes doesn't).


I've also noticed that TouchEvent.cancellable property is always true,  
even in later touchmove events that effectively cannot be cancelled.  
Should event.cancellable property vary per event to reflect that?

-- 
regards, Kornel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.