The playground has a scrollable list of divs, and a cube that rotates when dragging horizontally on the list. The divs are sending a pointer capture to the canvas, which I expect to send events to the Babylon observable. Initially, when dragging horizontally on the tile, the capture works correctly and the events are forwarded to the Babylon pointer observable, rotating the box. However after scrolling vertically on the list, pointer capture is broken for the Babylon observable, but not for a regular event listener.
Is this a bug or am I using pointer capture incorrectly?
Okay, so here’s what I think is happening. The way our input system is setup, it expects to get some kind of pointerdown event (touching down on screen) to recognize that touch is being started. It then releases the touch when it gets a pointerup event. The way this code is set up, it’s only getting pointermove events so things are getting out of sync. This is a bit of an edge case so I’m currently adding some code to account for this input scenario. I’ll update this thread when I have a PR live.
Hi @PolygonalSun I checked the playground and it is fixed with version 6.17.0.
I updated my local version to the same version and it seems to still be broken. The changelog doesn’t actually include your PR. Should I wait for the next version?