W3C home > Mailing lists > Public > public-pointer-events@w3.org > January to March 2013

Hit-testing for pointer events

From: Wes Johnston <wjohnston@mozilla.com>
Date: Fri, 29 Mar 2013 00:56:17 -0700
Message-ID: <51554921.4020700@mozilla.com>
To: public-pointer-events@w3.org
I was glancing at the specification tonight and ran across a section 
detailing touch-action:

"When a user touches an element, the effect of that touch is determined 
by the value of the |touch-action| property and the default touch 
behaviors on the element and its ancestors. To determine the effect of a 
touch, find the nearest ancestor (starting from the element itself) that 
has a default touch behavior."

I'm curious what exactly the specification means by "touches an element" 
or "nearest ancestor", especially given touch events may occur over a 
area rather than only occurring at a single point. Is it worth 
specifying a behavior for finding elements near a touch (either within 
the touch radius or using a fuzzy constant around the center of the 
touch point)?
Received on Friday, 29 March 2013 07:56:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:20:24 UTC