Change the interaction condition signature

This commit is contained in:
Éric Lemoine
2013-09-12 18:08:01 +02:00
parent daddc61dc6
commit ba3f97d50a
8 changed files with 36 additions and 29 deletions

View File

@@ -83,7 +83,7 @@ ol.interaction.DragRotate.prototype.handleDragEnd = function(mapBrowserEvent) {
ol.interaction.DragRotate.prototype.handleDragStart =
function(mapBrowserEvent) {
var browserEvent = mapBrowserEvent.browserEvent;
if (browserEvent.isMouseActionButton() && this.condition_(browserEvent)) {
if (browserEvent.isMouseActionButton() && this.condition_(mapBrowserEvent)) {
var map = mapBrowserEvent.map;
map.requestRenderFrame();
this.lastAngle_ = undefined;