Re: [cssom-view] Need a variant of elementFromPoint that returns a NodeList

On Wed, 09 Feb 2011 00:31:08 +0100, Simon Fraser <smfr@me.com> wrote:

> On Feb 8, 2011, at 3:22 PM, Ian Hickson wrote:
>
>> elementFromPoint() is defined to return a single Element, but apparently
>> it is quite common for users of this API to find that the element at the
>> given point isn't the element they want, because multiple elements are
>> overlaid on the same spot on the canvas.
>>
>> It would be useful for such users if a variant of this API could be made
>> that returns a (static) NodeList giving all the elements under that  
>> point.
>
> I'm glad you said static!
>
> Why would you want to return a node that can never be hit by the user?
>
> If the author wants to make a node invisible to user events, they can use
> the pointer-events property.

The pointer-events property seems to address the stated need AFAICT, so I  
haven't added anything to cssom-view.

-- 
Simon Pieters
Opera Software

Received on Tuesday, 16 April 2013 08:50:44 UTC