single-click vs double-click dilemma
I have an event happening for a single-click, and I have a different event happening for double-click.
Single-click: load preview of email message
Double-click: load message view in different window
The issue is that in order for a double-click to occurr, a single-click happens... twice. The current solution has been to put a timeout on the single-click and cancel it if the double-click is detected.
Question 1: What is the timeout on a double-click event to occur? If I single-click really slowly, it won't take place, for example.
Question 2: Is there a better way to solve this than to use a timeout?