more precise click detection