First...I don't mean pointer-lock (which works fine), but instead the setCapture() (old) or setPointerCapture() (new) functionality.
For example, if I drag a Dear ImGui window and the mouse pointer goes out of the browser window, mouse events are no longer reported. Releasing the mouse button outside the window means that the ImGui window now sticks to the mouse button when the mouse is moved back inside, because the application still thinks the mouse button is pressed.
In the olden times, there was a setCapture()/releaseCapture() event pair, which doesn't work in Chrome.
In modern times, there's a new setPointerCapture()/releasePointerCapture() event pair, but this requires a 'pointerId' parameter, which isn't part of the regular mouse events, but of the derived 'pointer events'.
Long story short, has anybody managed to hack this somehow with the emscripten_*() functions? I tinkered around with calling an EM_JS() function from within the mouse button event handlers, which then calls setPointerCapture/releasePointerCapture, but that isn't successful because those functions want an actual, active "pointerId" object, not just some random number :D
Thanks!
-Floh.