Code to detect single or double click

Yes, but in my clock example, the single click handler is not passive. However it won't defeat or interfere with the double click handler.