- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@angular/cdk/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js
r59329aa re29cc2e 23 23 this._platform = _platform; 24 24 this._cursorStyleIsSet = false; 25 /** Store pointerdown event target to track origin of click. */ 26 this._pointerDownListener = (event) => { 27 this._pointerDownEventTarget = _getEventTarget(event); 28 }; 25 29 /** Click event listener that will be attached to the body propagate phase. */ 26 30 this._clickListener = (event) => { 27 31 const target = _getEventTarget(event); 32 // In case of a click event, we want to check the origin of the click 33 // (e.g. in case where a user starts a click inside the overlay and 34 // releases the click outside of it). 35 // This is done by using the event target of the preceding pointerdown event. 36 // Every click event caused by a pointer device has a preceding pointerdown 37 // event, unless the click was programmatically triggered (e.g. in a unit test). 38 const origin = event.type === 'click' && this._pointerDownEventTarget 39 ? this._pointerDownEventTarget : target; 40 // Reset the stored pointerdown event target, to avoid having it interfere 41 // in subsequent events. 42 this._pointerDownEventTarget = null; 28 43 // We copy the array because the original may be modified asynchronously if the 29 44 // outsidePointerEvents listener decides to detach overlays resulting in index errors inside … … 40 55 } 41 56 // If it's a click inside the overlay, just break - we should do nothing 42 // If it's an outside click dispatch the mouse event, and proceed with the next overlay 43 if (overlayRef.overlayElement.contains(target)) { 57 // If it's an outside click (both origin and target of the click) dispatch the mouse event, 58 // and proceed with the next overlay 59 if (overlayRef.overlayElement.contains(target) || 60 overlayRef.overlayElement.contains(origin)) { 44 61 break; 45 62 } … … 59 76 if (!this._isAttached) { 60 77 const body = this._document.body; 78 body.addEventListener('pointerdown', this._pointerDownListener, true); 61 79 body.addEventListener('click', this._clickListener, true); 62 80 body.addEventListener('auxclick', this._clickListener, true); … … 76 94 if (this._isAttached) { 77 95 const body = this._document.body; 96 body.removeEventListener('pointerdown', this._pointerDownListener, true); 78 97 body.removeEventListener('click', this._clickListener, true); 79 98 body.removeEventListener('auxclick', this._clickListener, true); … … 95 114 { type: Platform } 96 115 ]; 97 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1vdXRzaWRlLWNsaWNrLWRpc3BhdGNoZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL292ZXJsYXkvZGlzcGF0Y2hlcnMvb3ZlcmxheS1vdXRzaWRlLWNsaWNrLWRpc3BhdGNoZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxNQUFNLEVBQUUsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRWpELE9BQU8sRUFBQyxRQUFRLEVBQUUsZUFBZSxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDaEUsT0FBTyxFQUFDLHFCQUFxQixFQUFDLE1BQU0sMkJBQTJCLENBQUM7Ozs7QUFFaEU7Ozs7R0FJRztBQUVILE1BQU0sT0FBTyw2QkFBOEIsU0FBUSxxQkFBcUI7SUF JdEUsWUFBOEIsUUFBYSxFQUFVLFNBQW1CO1FBQ3RFLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQURtQyxjQUFTLEdBQVQsU0FBUyxDQUFVO1FBRmhFLHNCQUFpQixHQUFHLEtBQUssQ0FBQztRQWlEbEMsOEVBQThFO1FBQ3RFLG1CQUFjLEdBQUcsQ0FBQyxLQUFpQixFQUFFLEVBQUU7WUFDN0MsTUFBTSxNQUFNLEdBQUcsZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDO1lBQ3RDLCtFQUErRTtZQUMvRSw0RkFBNEY7WUFDNUYsZ0JBQWdCO1lBQ2hCLE1BQU0sUUFBUSxHQU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V0c2lkZVBvaW50ZXJFdmVudHMub2JzZXJ2ZXJzLmxlbmd0aCA8IDEgfHwgIW92ZXJsYXlSZWYuaGFzQXR0YWNoZWQoKSkge1xuICAgICAgICBjb250aW51ZTtcbiAgICAgIH1cblxuICAgICAgLy8gSWYgaXQncyBhIGNsaWNrIGluc2lkZSB0aGUgb3ZlcmxheSwganVzdCBicmVhayAtIHdlIHNob3VsZCBkbyBub3RoaW5nXG4gICAgICAvLyBJZiBpdCdzIGFuIG91dHNpZGUgY2xpY2sgKGJvdGggb3JpZ2luIGFuZCB0YXJnZXQgb2YgdGhlIGNsaWNrKSBkaXNwYXRjaCB0aGUgbW91c2UgZXZlbnQsXG4gICAgICAvLyBhbmQgcHJvY2VlZCB3aXRoIHRoZSBuZXh0IG92ZXJsYXlcbiAgICAgIGlmIChvdmVybGF5UmVmLm92ZXJsYXlFbGVtZW50LmNvbnRhaW5zKHRhcmdldCBhcyBOb2RlKSB8fFxuICAgICAgICAgIG92ZXJsYXlSZWYub3ZlcmxheUVsZW1lbnQuY29udGFpbnMob3JpZ2luIGFzIE5vZGUpKSB7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuXG4gICAgICBvdmVybGF5UmVmLl9vdXRzaWRlUG9pbnRlckV2ZW50cy5uZXh0KGV2ZW50KTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
Note:
See TracChangeset
for help on using the changeset viewer.