[Mobile] Comments

Clarifies what the ratio is for the
distance.
This commit is contained in:
Shivam Dave 2015-09-03 09:51:12 -07:00
parent 7c110ee8af
commit c8b02d355f

View File

@ -370,6 +370,8 @@ define(
} }
// Updates the viewport based on the amount of zooming (pinching) user is doing // Updates the viewport based on the amount of zooming (pinching) user is doing
// Pinch inwards (zoom out): distanceRatio > 1
// Pinch outwards (zoom in): distanceRatio < 1
function updateZoom(midpoint, bounds, distance) { function updateZoom(midpoint, bounds, distance) {
// Gets the current midpoint and distance ratio to be used to // Gets the current midpoint and distance ratio to be used to