react-page-click

React component-wrapper to detect page events (mousedown or touchstart/touchend) outside of wrapped element.

jquery.event.ue

Respond to Touch and Desktop events using the same handlers, including tap (click), long-press, drag, long-press-drag, pinch/mouse zoom. Used in commercial SPAs and featured in the best-selling book Single Page Web Applications - JavaScript end-to-end.