Remove x,y params from ol.Kinetic.begin
This commit is contained in:
@@ -106,7 +106,8 @@ ol.interaction.DragPan.prototype.handleDragStart = function(mapBrowserEvent) {
|
|||||||
var browserEvent = mapBrowserEvent.browserEvent;
|
var browserEvent = mapBrowserEvent.browserEvent;
|
||||||
if (this.condition_(browserEvent)) {
|
if (this.condition_(browserEvent)) {
|
||||||
if (this.kinetic_) {
|
if (this.kinetic_) {
|
||||||
this.kinetic_.begin(browserEvent.clientX, browserEvent.clientY);
|
this.kinetic_.begin();
|
||||||
|
this.kinetic_.update(browserEvent.clientX, browserEvent.clientY);
|
||||||
}
|
}
|
||||||
var map = mapBrowserEvent.map;
|
var map = mapBrowserEvent.map;
|
||||||
map.requestRenderFrame();
|
map.requestRenderFrame();
|
||||||
|
|||||||
@@ -63,14 +63,12 @@ ol.Kinetic = function(decay, minVelocity, delay) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {number} x X.
|
* FIXME empty description for jsdoc
|
||||||
* @param {number} y Y.
|
|
||||||
*/
|
*/
|
||||||
ol.Kinetic.prototype.begin = function(x, y) {
|
ol.Kinetic.prototype.begin = function() {
|
||||||
this.points_.length = 0;
|
this.points_.length = 0;
|
||||||
this.angle_ = 0;
|
this.angle_ = 0;
|
||||||
this.initialVelocity_ = 0;
|
this.initialVelocity_ = 0;
|
||||||
this.update(x, y);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user