Let the controls decide about stopPropagation and preventDefault.

This commit is contained in:
ahocevar
2012-06-24 19:53:42 +02:00
parent 68498bc36e
commit d8599f28b9
3 changed files with 10 additions and 4 deletions
+1 -4
View File
@@ -288,10 +288,7 @@ ol.event.Events.prototype.handleBrowserEvent = function(evt) {
if (this.includeXY_) {
evt.xy = this.getPointerPosition(evt);
}
if (this.triggerEvent(evt.type, evt) === false) {
evt.stopPropagation();
evt.preventDefault();
}
this.triggerEvent(evt.type, evt);
}
};