take distance into account for double click