Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial implicit capture proposal #129

Merged
merged 3 commits into from
Aug 8, 2016

Conversation

RByers
Copy link
Contributor

@RByers RByers commented Aug 2, 2016

Adds an initial description of chromium's "implicit capture" behavior as discussed in #8.

@RByers
Copy link
Contributor Author

RByers commented Aug 2, 2016

Note that this is a pull request against a new "reduce-hit-tests" branch as discussed in #8. I imagine we'll want to continue to iterate on related changes in the branch (for example, this doesn't yet contain the fix for #61). So I don't think we need to worry about this being perfect from the start, I just want to get an initial framework in place for describing the chromium implementation so that folks can continue to iterate on it (eg. while I'm on vacation until Aug 22nd).

@NavidZ @scottgonzalez @patrickhlauke @teddink WDYT, does this look like a reasonable place to start on the branch?

@patrickhlauke
Copy link
Member

Looks reasonable to me, yes

@NavidZ
Copy link
Member

NavidZ commented Aug 3, 2016

lgtm too.

</section>
<h2><dfn>Implicit Pointer Capture</dfn></h2>
<p>Some input devices (such as touchscreens) implement a "direct manipulation" metaphor where a pointer is intended to act primarily on the UI element it became active upon (providing a physical illusion of direct contact, instead of indirect contact via a cursor that conceptually floats above the UI). Such devices are identified by the <a href="https://wicg.github.io/InputDeviceCapabilities/#dom-inputdevicecapabilities-pointermovementscrolls">InputDeviceCapabilities.pointerMovementScrolls property</a> and should have "implicit pointer capture" behavior as follows.
<p>Direct manipulation devices should behave exactly as if <a data-lt="Element.setPointerCapture">setPointerCapture</a> was called on the target element just before the invocation of any <code>pointerdown</code> listeners. The <a data-lt="Element.hasPointerCapture">hasPointerCapture</a> API may be used (eg. within any <code>pointerdown</code> listener) to determine whether this has occurred. If <a data-lt="Element.releasePointerCapture">releasePointerCapture</a> is not called for the pointer before the next pointer event is fired, then a <a>gotpointercapture event</a> will be dispatched to the target (as normal) indicating that capture is active.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two paragraphs are missing closing tags.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed.

@scottgonzalez
Copy link
Member

One minor nit, but otherwise this looks good.

@RByers RByers merged commit 3459b59 into w3c:reduce-hit-tests Aug 8, 2016
@RByers RByers deleted the implicit-capture branch August 29, 2016 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants