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

Re: WebEvents-ISSUE-9: Interaction of touch events and mouse events [Touch Events spec]

From: Matt Brubeck <mbrubeck@mozilla.com>
Date: Sat, 02 Apr 2011 07:09:33 -0700
Message-ID: <4D972E1D.7030406@mozilla.com>
To: Benjamin Poulain <benjamin.poulain@nokia.com>
CC: Web Events Working Group WG <public-webevents@w3.org>
On 03/28/2011 01:22 PM, Benjamin Poulain wrote:
>  From my experience on the issue with Qt on Windows 7, this mixing of
> mouse event and touch event make it impossible to do anything useful
> with the page.
>
> The best solution I had was to discard the mouse event generated by the
> platform for the touch event. This way the touch and mouse on the same
> computer work as expected.

I agree.  In order to support this technique, I think the Touch Events 
spec should at least specify:

"If the user agent dispatches both touch events and mouse events in 
response to the same user action, then the 'touchstart' event must be 
dispatched before any mouse events for that action."

This allows content to support both mouse and touch events, and switch 
between them dynamically in a clean way.  (For example, this would allow 
our own test suite to detect non-touch-aware browsers.)  It is also 
compatible with existing implementations.  Any objections?
Received on Saturday, 2 April 2011 14:10:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 2 April 2011 14:10:09 GMT