Open Bug 1930525 Opened 2 days ago Updated 2 days ago

Pointer Lock API has incorrect cursor speed

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

Firefox 132
defect

Tracking

()

UNCONFIRMED

People

(Reporter: joshas, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0

Steps to reproduce:

Open this example https://mdn.github.io/dom-examples/pointer-lock/ and click inside black rectangle to capture cursor.

Actual results:

When moving mouse, circle moves way slower than it should be moving.

Expected results:

Circle should be moving at the same speed as mouse cursor when it is not captured. Opening same example in GNOME Web (Epiphany) browser, results in correct experience, where circle is moving at the same speed as the mouse cursor. Similar issues occur in 3D Unity games on the web, but usually after cursor is captured whole view spins too fast and it is impossible to control camera, while when cursor is not captured camera moves more or less correctly. Fedora 41, GNOME, Wayland.

The Bugbug bot thinks this bug should belong to the 'Core::WebRTC: Audio/Video' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → WebRTC: Audio/Video
Product: Firefox → Core
Component: WebRTC: Audio/Video → DOM: UI Events & Focus Handling

I'm on Fedora 40, with Wayland. I'll update and try to reproduce tomorrow.

Flags: needinfo?(afarre)
See Also: → 1930685
You need to log in before you can comment on or make changes to this bug.