fix: remove duplicate containerRect declaration
TypeScript error: containerRect was declared twice in the same scope. The variable is already declared at the top of handleMouseMove, no need to redeclare it when calculating magnifier position. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
6736336317
commit
1a690e00b0
|
|
@ -910,7 +910,7 @@ export function MapRenderer({
|
|||
}
|
||||
|
||||
// Calculate magnifier position (opposite corner from cursor)
|
||||
const containerRect = containerRef.current.getBoundingClientRect()
|
||||
// containerRect already declared at top of function
|
||||
const magnifierWidth = containerRect.width * 0.5
|
||||
const magnifierHeight = magnifierWidth / 2
|
||||
const isLeftHalf = cursorX < containerRect.width / 2
|
||||
|
|
|
|||
Loading…
Reference in New Issue