Refactor double click check

Thanks, @kevinsawicki!