Adding scroll sequence and scroll support for the Navigation control.

This commit is contained in:
ahocevar
2012-06-22 19:51:35 +02:00
parent 6b8000d963
commit c72f803038
5 changed files with 73 additions and 7 deletions

View File

@@ -99,7 +99,7 @@ ol.Map = function() {
* @type {ol.event.Events}
*/
this.events_ = new ol.event.Events(
this, undefined, false, ['drag']
this, undefined, false, ['drag', 'scroll']
);
/**
@@ -427,7 +427,7 @@ ol.Map.prototype.getViewportPosition = function(loc) {
* @returns {Element} the map overlay element
*/
ol.Map.prototype.getMapOverlay = function() {
return this.mapOverlay_
return this.mapOverlay_;
};
/**