Searched refs:oldScale (Results 1 – 2 of 2) sorted by relevance
448 final float oldScale = spec.scale; in setScale() local450 = (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale; in setScale()452 = (viewport.height() / 2.0f - spec.offsetY + viewport.top) / oldScale; in setScale()453 final float normPivotX = (pivotX - spec.offsetX) / oldScale; in setScale()454 final float normPivotY = (pivotY - spec.offsetY) / oldScale; in setScale()455 final float offsetX = (oldCenterX - normPivotX) * (oldScale / scale); in setScale()456 final float offsetY = (oldCenterY - normPivotY) * (oldScale / scale); in setScale()
517 public void onScaleChanged(WebView view, float oldScale, float newScale) { in onScaleChanged() argument