If you let it sleep (which may take a little while) then this will stop. You are correct that this is probably the dt getting a bit larger while processing the mouse events, which will affect the simulation.
If you let it sleep (which may take a little while) then this will stop. You are correct that this is probably the dt getting a bit larger while processing the mouse events, which will affect the simulation.