Re: [w3c/pointerlock] Add lock options to requestPointerLock (#49)

@alvinjiooo commented on this pull request.



> +                current [=pointer-lock options=] and [=options=] are not
+                supported:
+                  <ol>
+                    <li>[=Queue an element task=] on the [=user interaction
+                    task source=], given this, to perform the following steps:
+                      <ol type='i'>
+                        <li>[=Reject=] <var>promise</var> with a
+                        "{{NotSupportedError}}" {{DOMException}}.
+                        </li>
+                      </ol>
+                    </li>
+                    <li>Return <var>promise</var>.
+                    </li>
+                  </ol>
+                </li>
+                <li>If [=options=] are not equivalent to the current

I agree with Vincent that maintaining support for both pre- and post-promise versions of `requestPointerLock` is essential. Instead of rejecting concurrent requests, we should implement a requests queue and handle them sequentially. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/pointerlock/pull/49#discussion_r1513267561
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/pointerlock/pull/49/review/1917750334@github.com>

Received on Tuesday, 5 March 2024 17:59:24 UTC