In multiple places in interactions.ts, we use event.movementX and event.movementY. This is supposed to be the difference since the last event, but it appears that when frames are dropped, these values are still relative to the dropped events, so any mouse-based adjustments feel slower than they should.
Instead, we should probably store the last values of event.clientX and event.clientY, and on a mouse move event, compare new values to old values to get a more accurate delta.
In multiple places in
interactions.ts
, we useevent.movementX
andevent.movementY
. This is supposed to be the difference since the last event, but it appears that when frames are dropped, these values are still relative to the dropped events, so any mouse-based adjustments feel slower than they should.Instead, we should probably store the last values of
event.clientX
andevent.clientY
, and on a mouse move event, compare new values to old values to get a more accurate delta.