Only move mouse if outside bounds of frame