W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2014

TouchEvents: cancelling second touchmove

From: Kornel Lesiński <kornel@geekhood.net>
Date: Sat, 11 Jan 2014 13:22:29 -0000
To: www-dom@w3.org
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  


 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  

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
Received on Saturday, 11 January 2014 13:22:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:22 UTC