Add ol.MapBrowserEvent.stopOtherInteractions

When called, stops the interaction chain.
This commit is contained in:
Frederic Junod
2013-06-18 12:59:30 +02:00
parent 2bd87313cd
commit bed44dd82c
6 changed files with 18 additions and 1 deletions
+13
View File
@@ -39,6 +39,11 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) {
*/
this.coordinate_ = null;
/**
* @type {boolean}
*/
this.otherInteractionsStopped = false;
/**
* @private
* @type {ol.Pixel}
@@ -107,6 +112,14 @@ ol.MapBrowserEvent.prototype.preventDefault = function() {
};
/**
* Stop the interaction chain.
*/
ol.MapBrowserEvent.prototype.stopOtherInteractions = function() {
this.otherInteractionsStopped = true;
};
/**
* @override
*/