Switched from time-based to distance-based click detection.