double-click detection fix