View / remove constrainCenter method

This commit is contained in:
jahow
2019-01-12 15:49:36 +01:00
committed by Olivier Guyot
parent c2c1aa01d3
commit d991dfa54a
5 changed files with 5 additions and 19 deletions
+1 -2
View File
@@ -93,7 +93,6 @@ class DragPan extends PointerInteraction {
scaleCoordinate(center, view.getResolution());
rotateCoordinate(center, view.getRotation());
addCoordinate(center, view.getCenter());
center = view.constrainCenter(center);
view.setCenter(center);
}
} else if (this.kinetic_) {
@@ -122,7 +121,7 @@ class DragPan extends PointerInteraction {
centerpx[1] - distance * Math.sin(angle)
]);
view.animate({
center: view.constrainCenter(dest),
center: dest,
duration: 500,
easing: easeOut
});