This has been answered in the context of "detect a click inside an iframe".
I don't need to know if a click is inside the iframe, but I'm trying to react to swipe events anywhere on the window for mobile browsers, and some embedded content is interfering with that.
I've tried attaching event handlers to window and document, with no success.
My suspicion is this isn't possible, but if is please let me know.