make the longer than a double click computation only once