View / better names for getValid* and applyParameters_ methods

This commit is contained in:
Olivier Guyot
2019-02-15 13:43:50 +01:00
parent c2af03f152
commit 405e206717
8 changed files with 43 additions and 46 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ class DragPan extends PointerInteraction {
centerpx[1] - distance * Math.sin(angle)
]);
view.animate({
center: view.getValidCenter(dest),
center: view.getConstrainedCenter(dest),
duration: 500,
easing: easeOut
});