fix mouse not working if happens while moving