I found the basis for my solution here. mousemove-when-over-an-iframe
I modified this slightly in that my particular page didn't need to save the original onMouseMove and onMouseUp handlers.
To wire this up add a client listener to the popup
<af:clientListener type="popupOpened" method="popupOpened"/>