const polyfills = { elementsFromPoint : function ( x , y ) { if ( window . document . elementsFromPoint ) { return window . document . elementsFromPoint ( x , y ) ; } var parents = [ ] ; var parent = void 0 ; do { if ( parent !== document . elementFromPoint ( x , y ) ) { parent = document . elementFromPoint ( x , y ) ; parents . push ( parent ) ; parent . style . pointerEvents = "none" ; } else { parent = false ; } } while ( parent ) ; parents . forEach ( function ( parent ) { return ( parent . style . pointerEvents = "all" ) ; } ) ; return parents ; } , } ; export default polyfills ;