Merge pull request #11327 from ahocevar/fix-ie11
Fix Internet Explorer issues
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = {
|
|||||||
mode: 'production',
|
mode: 'production',
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
ol: path.resolve('./src/ol'),
|
ol: path.resolve('./build/ol'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
|
|||||||
@@ -1007,14 +1007,16 @@ class PluggableMap extends BaseObject {
|
|||||||
originalEvent.clientY
|
originalEvent.clientY
|
||||||
);
|
);
|
||||||
if (
|
if (
|
||||||
|
// Abort if the target is a child of the container for elements whose events are not meant
|
||||||
|
// to be handled by map interactions.
|
||||||
|
this.overlayContainerStopEvent_.contains(target) ||
|
||||||
// Abort if the event target is a child of the container that is no longer in the page.
|
// Abort if the event target is a child of the container that is no longer in the page.
|
||||||
// It's possible for the target to no longer be in the page if it has been removed in an
|
// It's possible for the target to no longer be in the page if it has been removed in an
|
||||||
// event listener, this might happen in a Control that recreates it's content based on
|
// event listener, this might happen in a Control that recreates it's content based on
|
||||||
// user interaction either manually or via a render in something like https://reactjs.org/
|
// user interaction either manually or via a render in something like https://reactjs.org/
|
||||||
!rootNode.contains(target) ||
|
!(rootNode === document ? document.documentElement : rootNode).contains(
|
||||||
// Abort if the target is a child of the container for elements whose events are not meant
|
target
|
||||||
// to be handled by map interactions.
|
)
|
||||||
this.overlayContainerStopEvent_.contains(target)
|
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user