Setting a view hint triggers change

This commit is contained in:
Tim Schaub
2016-11-13 11:11:05 -07:00
parent 1ae6921e53
commit 8401d22f28
5 changed files with 0 additions and 7 deletions

View File

@@ -110,9 +110,6 @@ ol.interaction.DragPan.handleUpEvent_ = function(mapBrowserEvent) {
duration: 500, duration: 500,
easing: ol.easing.easeOut easing: ol.easing.easeOut
}); });
} else {
// the view is not updated, force a render
map.render();
} }
view.setHint(ol.View.Hint.INTERACTING, -1); view.setHint(ol.View.Hint.INTERACTING, -1);
return false; return false;

View File

@@ -223,7 +223,6 @@ ol.interaction.MouseWheelZoom.prototype.decrementInteractingHint_ = function() {
this.trackpadTimeoutId_ = undefined; this.trackpadTimeoutId_ = undefined;
var view = this.getMap().getView(); var view = this.getMap().getView();
view.setHint(ol.View.Hint.INTERACTING, -1); view.setHint(ol.View.Hint.INTERACTING, -1);
view.changed(); // notify listeners of the hint change
}; };

View File

@@ -157,7 +157,6 @@ ol.interaction.PinchRotate.handleDownEvent_ = function(mapBrowserEvent) {
if (!this.handlingDownUpSequence) { if (!this.handlingDownUpSequence) {
map.getView().setHint(ol.View.Hint.INTERACTING, 1); map.getView().setHint(ol.View.Hint.INTERACTING, 1);
} }
map.render();
return true; return true;
} else { } else {
return false; return false;

View File

@@ -140,7 +140,6 @@ ol.interaction.PinchZoom.handleDownEvent_ = function(mapBrowserEvent) {
if (!this.handlingDownUpSequence) { if (!this.handlingDownUpSequence) {
map.getView().setHint(ol.View.Hint.INTERACTING, 1); map.getView().setHint(ol.View.Hint.INTERACTING, 1);
} }
map.render();
return true; return true;
} else { } else {
return false; return false;

View File

@@ -280,7 +280,6 @@ ol.View.prototype.cancelAnimations = function() {
} }
} }
this.animations_.length = 0; this.animations_.length = 0;
this.changed(); // notify that the hint changed
}; };
/** /**