Remove x,y params from ol.Kinetic.begin

This commit is contained in:
Frederic Junod
2013-02-18 16:27:09 +01:00
parent a455473a28
commit e4a5744e06
2 changed files with 4 additions and 5 deletions

View File

@@ -106,7 +106,8 @@ ol.interaction.DragPan.prototype.handleDragStart = function(mapBrowserEvent) {
var browserEvent = mapBrowserEvent.browserEvent;
if (this.condition_(browserEvent)) {
if (this.kinetic_) {
this.kinetic_.begin(browserEvent.clientX, browserEvent.clientY);
this.kinetic_.begin();
this.kinetic_.update(browserEvent.clientX, browserEvent.clientY);
}
var map = mapBrowserEvent.map;
map.requestRenderFrame();