src/aria/popups/PopupManager.js
function (domEvent, popup) {
                var documentScroll = ariaUtilsDom._getDocumentScroll();
                var clickPosition = {
                    'top' : domEvent.clientY + documentScroll.scrollTop,
                    'left' : domEvent.clientX + documentScroll.scrollLeft
                };

                var popupPosition = {
                    'top' : popup.computedStyle.top,
                    'left' : popup.computedStyle.left
                };

                var popupSize = {
                    'width' : popup.computedStyle.width,
                    'height' : popup.computedStyle.height
                };
                return (clickPosition.top >= popupPosition.top && clickPosition.left >= popupPosition.left
                        && clickPosition.top <= popupPosition.top + popupSize.height && clickPosition.left <= popupPosition.left
                        + popupSize.width);
            }
function (domEvent, popup) {
                var documentScroll = ariaUtilsDom._getDocumentScroll();
                var clickPosition = {
                    'top' : domEvent.clientY + documentScroll.scrollTop,
                    'left' : domEvent.clientX + documentScroll.scrollLeft
                };

                var popupPosition = {
                    'top' : popup.computedStyle.top,
                    'left' : popup.computedStyle.left
                };

                var popupSize = {
                    'width' : popup.computedStyle.width,
                    'height' : popup.computedStyle.height
                };
                return (clickPosition.top >= popupPosition.top && clickPosition.left >= popupPosition.left
                        && clickPosition.top <= popupPosition.top + popupSize.height && clickPosition.left <= popupPosition.left
                        + popupSize.width);
            }
function ( domEvent , popup ) { var documentScroll = ariaUtilsDom . _getDocumentScroll ( ) ; var clickPosition = { 'top' : domEvent . clientY + documentScroll . scrollTop , 'left' : domEvent . clientX + documentScroll . scrollLeft } ; var popupPosition = { 'top' : popup . computedStyle . top , 'left' : popup . computedStyle . left } ; var popupSize = { 'width' : popup . computedStyle . width , 'height' : popup . computedStyle . height } ; return ( clickPosition . top >= popupPosition . top && clickPosition . left >= popupPosition . left && clickPosition . top <= popupPosition . top + popupSize . height && clickPosition . left <= popupPosition . left + popupSize . width ) ; }
Check if an event happen in the box a a popup
@protected
@param {aria.DomEvent} domEvent
@param {aria.popups.Popup} popup
@return {Boolean}
Check if an event happen in the box a a popup