HumbleUI/JWM

macOS: Pointer Lock API

shaunlebron opened this issue · 2 comments

This helps prevent accidentally exiting the view when tracking touch points in #249.

Web:

Chromium:

macOS:

Will you make a PR?

PR is up. But I have to do some more digging to see how chromium adds the movementX and movementY properties to the mouse move event when pointer is locked.

edit: chromium just uses the deltaX and deltaY properties from the NSEvent

edit2: done