Re: [pointerevents] Add Element.hasPointerCapture API

I think the precise definition of this should be (roughly): "if the 
pending pointer capture target override for this pointerId is set and 
equals the element on which this method was invoked, return true.  
Otherwise return false".

In particular, we want "pending" because:
 - Implicit capture should behave the same as an explicit capture in a
 pointerdown handler (eg. we want only one `gotpointercapture` event 
in the explicit capture case).
 - We want this API to be able to tell you that implicit capture has 
occurred

So that means it'll reflect any change via setPointerCapture as soon 
as it happens, potentially well ahead of the notifications seen by the
 got/lost events.

  Sound right @NavidZ @mustaqahmed @patrickhlauke @scottgonzalez 
@jacobrossi 

-- 
GitHub Notification of comment by RByers
Please view or discuss this issue at 
https://github.com/w3c/pointerevents/issues/121#issuecomment-236236378
 using your GitHub account

Received on Friday, 29 July 2016 17:05:26 UTC