fixed some stuff for mouse panning