RxJS Triple Click:

by Walter Beller-Morales

Using Observables it is possible to react to DOM events in ways that would be impossible through the native event handlers.

For example, detecting single or double clicks is trivial with the native DOM event handlers but creating a new click event handler is complicated. Using RxJS it's easy to craft custom event handlers for DOM events such as detecting a triple click.

TRIPLE CLICK ME!

-

 var loaded = false;