Fixed double click in input events