improved long click detection