fixed bug where the 3d display jumped when the mouse was clicked