fix(know-your-world): use shared MAX_ZOOM constant for mobile magnifier
Replace local MAX_ZOOM = 50 with shared MAX_ZOOM = 1000 from constants. This fixes mobile magnifier auto-zoom being incorrectly capped at 50x when panning within the magnifier, while map dragging was uncapped. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3a8a8d3e86
commit
e4c35e9425
|
|
@ -19,6 +19,7 @@ import { findOptimalZoom } from '../../utils/adaptiveZoomSearch'
|
|||
import { getMagnifierDimensions } from '../../utils/magnifierDimensions'
|
||||
import { useMapGameContext } from '../game'
|
||||
import { getRenderedViewport } from '../labels'
|
||||
import { MAX_ZOOM } from '../shared/constants'
|
||||
import { useMagnifierContext } from './MagnifierContext'
|
||||
import { calculateTouchMultiplier, clampToSvgBounds, parseViewBoxDimensions } from './panningMath'
|
||||
|
||||
|
|
@ -26,7 +27,6 @@ import { calculateTouchMultiplier, clampToSvgBounds, parseViewBoxDimensions } fr
|
|||
// Constants
|
||||
// ============================================================================
|
||||
|
||||
const MAX_ZOOM = 50
|
||||
const SAFE_ZONE_MARGINS = {
|
||||
top: 60,
|
||||
right: 8,
|
||||
|
|
|
|||
Loading…
Reference in New Issue