Re: [w3c/pointerlock] movementX/Y coordinate space (#42)

> Here's a demo showing movementX is not usable in Chrome (on a macbook air m2 with dpr 2):
> 
> https://codepen.io/trusktr/pen/OJqROvd/823fc7ec003e4652d97ff13e32d91b80
> 
> When you drag left/right on the demo, notice the mouse moves different speed than then orange border.
> 
> Here's a demo using `movementX = event.clientX - previousClientX`, and it works as expected, dragging moves the box at the same speed as the mouse:
> 
> https://codepen.io/trusktr/pen/gOEwXdZ/6257b761fdc13f2b7c354ed2cf422af4

I would like to point out this is zoom level dependent. On my monitor the first demo worked fine until I zoomed in.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/pointerlock/issues/42#issuecomment-1889715842
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/pointerlock/issues/42/1889715842@github.com>

Received on Friday, 12 January 2024 17:48:15 UTC