prevent double click and double move