react-xr icon indicating copy to clipboard operation
react-xr copied to clipboard

Pointer events not working on Firefox Mobile

Open dammafra opened this issue 7 months ago • 4 comments

Tested on Firefox Mobile 138.0.4

dammafra avatar May 23 '25 15:05 dammafra

Could you add more details. E.g. what example/repo did you test on and with what device? :)

bbohlender avatar May 23 '25 15:05 bbohlender

Sorry, here are all the details.

I was using the library in my game, repo here: https://github.com/dammafra/drysland With the latest commit, I removed the library in favor of a manual implementation, but if you check out the previous commit, you can try it.

The device is a OnePlus 9 Pro Android Version 14 Version Number LE2123_14.0.0.1901(EX01) Baseband Version Q_V1_P14,Q_V1_P14 Kernel Version 5.4.254-qgki-gd2a1055adeb0 Hardware Version LE2123_11 RAM 12GB Processor Qualcomm Snapdragon 888 Octa-core

dammafra avatar May 23 '25 15:05 dammafra

Also seeing what I believe is the same bug.

Reproduced with the pointer-events example. You must use a real Android device with touch input - touch emulation on desktop Firefox does not trigger the behavior, and it doesn't happen at all in Chrome!

The first touch input works, but subsequent inputs are ignored unless a move occurs during the touch.

This seems to be designed behavior, which makes no sense to me. Is there some part of the pointerevent spec that requires a move occurs between up and down, making this a Firefox Android bug? Why even buffer these events at all?

Skehmatics avatar Nov 07 '25 21:11 Skehmatics

Ah, the spec does require an event, but it's pointerover, not pointermove (others are only suggested)

Listening for that event is enough to get it working, but I'm still not sure what the wasMoved check is about, so not 100% sure that's the right move. In any case, PR inbound.

Skehmatics avatar Nov 07 '25 22:11 Skehmatics