Re: [w3c/pointerlock] MovementX/Y for down and up (#15)

Are you referring to the situation of when the pointer is locked? What if the pointer is not locked?

I don't see any guarantee in UI Event spec that mouseup coordinates should be the same as the last mousemove event that the page received. Also I didn't mean that we include the difference in both mouseup and mousemove. I meant every event will have the coordinate difference from the last dispatched event (if not unknown). So when the pointer is locked and based on the spec all the browsers will send mousemove events for all movements and all the mousedowns/ups will have the same position as the last mouse move then they ups/downs will automatically get 0 as movementX/Y. But say when the pointer is not locked and you receive a mousedown (and the last position is known) then you would get that coordinate difference in the mousedown event. How about this? Is this any better?

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

Received on Saturday, 14 January 2017 04:22:21 UTC