fixed mouse pressed behavior