W3C home > Mailing lists > Public > public-webevents@w3.org > April to June 2011

preventDefault research

From: Matt Brubeck <mbrubeck@mozilla.com>
Date: Tue, 26 Apr 2011 16:39:22 -0700
Message-ID: <4DB757AA.5070705@mozilla.com>
To: "public-webevents@w3.org" <public-webevents@w3.org>
I'm doing some of my own research on preventDefault behavior for touch 
events, because we are busy implementing this in Firefox.  Here's a test 
page that others might find useful:

Safari, Android WebKit, and Opera Mobile 11 all display the following 

1) preventDefault on the touchstart event prevents scrolling and 
mouseup/mousedown/click events.

2) preventDefault on the touchmove event prevents scrolling.

3) preventDefault on the touchend event does NOT prevent scrolling or 
mouse events.
Received on Tuesday, 26 April 2011 23:39:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:53 UTC