- From: Takayoshi Kochi <notifications@github.com>
- Date: Sun, 03 Jul 2016 23:52:59 -0700
- To: w3c/pointerlock <pointerlock@noreply.github.com>
- Cc:
- Message-ID: <w3c/pointerlock/pull/4/r69414567@github.com>
> + <dl title='partial interface DocumentOrShadowRoot' class='idl'> > + <dt>readonly attribute Element? pointerLockElement</dt> > + <dd> > + <dfn title="pointerLockElement"></dfn> > + > + <p>If the element, which is set as the target for mouse events while the pointer is > + locked, is a > + <a href="https://dom.spec.whatwg.org/#concept-shadow-including-descendant">shadow-including descendant</a> of the > + <a href="http://dom.spec.whatwg.org/#context-object">context object</a>, > + return the result of the following algorithm: > + <ol> > + <li>Let <var>target</var> be the target for mouse events while the pointer is locked. > + <li>If <var>target</var> is in the same tree as the > + <a href="http://dom.spec.whatwg.org/#context-object">context object</a>, > + let <var>adjusted-target</var> be <var>target</var></li> > + <li>Otherwise: let <var>adjusted-target</var> be the shadow host of <var>target</var> and repeat the following substeps: Updated to use "A's root's host" instead of "A's shadow host". The precondition requires "the target is in the shadow-including descendant of the context object", i.e. if the context's root is not the same as the target's, the target's root must be a shadow root. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/pointerlock/pull/4/files/f6f8888daed63ac5c0432c9d43f4f929efdb07b0#r69414567
Received on Monday, 4 July 2016 06:53:56 UTC