diff --git a/src/ol/browserfeature.js b/src/ol/browserfeature.js index e12a238bca..c5802a3e48 100644 --- a/src/ol/browserfeature.js +++ b/src/ol/browserfeature.js @@ -60,7 +60,7 @@ ol.LEGACY_IE_SUPPORT = false; * @type {boolean} */ ol.IS_LEGACY_IE = goog.userAgent.IE && - goog.userAgent.isVersionOrHigher('9.0') && goog.userAgent.VERSION !== ''; + !goog.userAgent.isVersionOrHigher('9.0') && goog.userAgent.VERSION !== ''; /** diff --git a/src/ol/renderer/dom/dommaprenderer.js b/src/ol/renderer/dom/dommaprenderer.js index 445b35edea..73c8563040 100644 --- a/src/ol/renderer/dom/dommaprenderer.js +++ b/src/ol/renderer/dom/dommaprenderer.js @@ -41,9 +41,7 @@ ol.renderer.dom.Map = function(container, map) { // in IE < 9, we need to return false from ondragstart to cancel the default // behavior of dragging images, which is interfering with the custom handler // in the Drag interaction subclasses - if (ol.LEGACY_IE_SUPPORT && goog.userAgent.IE && - !goog.userAgent.isVersionOrHigher('9.0') && - goog.userAgent.VERSION !== '') { + if (ol.LEGACY_IE_SUPPORT && ol.IS_LEGACY_IE) { this.layersPane_.ondragstart = goog.functions.FALSE; this.layersPane_.onselectstart = goog.functions.FALSE; }