Fallback for legacy browser like Symbian S60 Webkit

Some old browsers don't support document.createEvent and definition of
listener as an EventListener object.
Browsers such as Symbian S60 Webkit don't support mousedown/up events.
We can only use click instead.
Second parameter to Tap constructor allows to pass the listener directly into it, which is needed when document.createEvent is not available, and also makes the code much shorter in usual cases.