Clamp to the supported range and round to whole percentage points: repeated ±0.1 steps accumulate float error (0.5 stepped up 5× → 0.99999…), which would otherwise break zoom === DEFAULT_ZOOM.
zoom === DEFAULT_ZOOM
Clamp to the supported range and round to whole percentage points: repeated ±0.1 steps accumulate float error (0.5 stepped up 5× → 0.99999…), which would otherwise break
zoom === DEFAULT_ZOOM.