diff --git a/package.json b/package.json index aea0afeaa5a..83919f6d26d 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "less-plugin-clean-css": "1.5.1", "moment": "2.19.2", "nomnom": "1.8.1", - "openlayers": "openlayers/openlayers#4a6317d", + "openlayers": "4.5.0", "phantomjs-prebuilt": "2.1.16", "proj4": "2.4.4", "svg2ttf": "4.1.0", diff --git a/src/ol-ext/interaction/modifycircle.js b/src/ol-ext/interaction/modifycircle.js index 0d59b041d10..9c6c550ede0 100644 --- a/src/ol-ext/interaction/modifycircle.js +++ b/src/ol-ext/interaction/modifycircle.js @@ -6,7 +6,6 @@ goog.require('ol'); goog.require('ol.Collection'); goog.require('ol.Feature'); goog.require('ol.MapBrowserPointerEvent'); -goog.require('ol.ViewHint'); goog.require('ol.coordinate'); goog.require('ol.events'); goog.require('ol.extent'); @@ -394,7 +393,7 @@ ngeo.interaction.ModifyCircle.handleEvent = function(mapBrowserEvent) { } let handled; - if (!mapBrowserEvent.map.getView().getHints()[ol.ViewHint.INTERACTING] && + if (!mapBrowserEvent.map.getView().getInteracting() && mapBrowserEvent.type == 'pointermove' && !this.handlingDownUpSequence) { this.handlePointerMove_(mapBrowserEvent); }