Merge pull request #8194 from fredj/cleanup

miscellaneous code cleanup
This commit is contained in:
Frédéric Junod
2018-05-16 08:31:27 +02:00
committed by GitHub
24 changed files with 39 additions and 87 deletions

View File

@@ -303,12 +303,9 @@ const PluggableMap = function(options) {
*/
this.keyHandlerKeys_ = null;
listen(this.viewport_, EventType.CONTEXTMENU,
this.handleBrowserEvent, this);
listen(this.viewport_, EventType.WHEEL,
this.handleBrowserEvent, this);
listen(this.viewport_, EventType.MOUSEWHEEL,
this.handleBrowserEvent, this);
listen(this.viewport_, EventType.CONTEXTMENU, this.handleBrowserEvent, this);
listen(this.viewport_, EventType.WHEEL, this.handleBrowserEvent, this);
listen(this.viewport_, EventType.MOUSEWHEEL, this.handleBrowserEvent, this);
/**
* @type {module:ol/Collection.<module:ol/control/Control>}