For some reason mousemove sometimes gives events with wildly wrong dx and dy resulting in sudden jumps of the camera. This happens in Chrome (I’m using version 88) but I haven’t noticed it in Firefox.
hmm, I forgot to mention that in order to easily see it in the example project I had to reduce the mouse sensitivity. I did it by opening the example in debug mode and changing the sensitivity via
@yaustar your suggestion wasn’t silly after all. When using a different mouse the behavior isn’t present.
It is weird that this only comes up on Chrome but I guess this isn’t too important knowing that other people with different mice don’t experience it.
Thank you guys for helping me out