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
@@ -217,7 +217,7 @@ class ZoomSlider extends Control {
event.offsetY - this.thumbSize_[1] / 2);
const resolution = this.getResolutionForPosition_(relativePosition);
const zoom = view.getValidZoomLevel(view.getZoomForResolution(resolution));
const zoom = view.getConstrainedZoom(view.getZoomForResolution(resolution));
view.animate({
zoom: zoom,