Repository navigation
fix(map): 최소 배율에서 휠·트랙패드 확대가 화면에 반영되지 않는 문제 수정 - #244
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



노션
변경 내용
center_changed가드(MapPreventHorizontalWrap)를 삭제했습니다. 가로 래핑은 기존MAP_PAN_RESTRICTION(경도 ±179.999,strictBounds)만으로 막습니다.MAP_PAN_RESTRICTION에center_changed에서 bounds를 보고 되돌리면 안 되는 이유를 주석으로 남겼습니다.moveMapTo·isMobileDevice분기) main → dev 백머지 때 충돌이 납니다. 삭제하는 쪽으로 해결하면 됩니다.변경 이유
setCenter다음에setZoom을 부릅니다. 그 사이center_changed의 bounds(새 중심 + 이전 줌)는 최소 배율 근처에서 날짜변경선을 넘은 것처럼 계산되고, 가드가 이를 래핑으로 잘못 판단해panTo로 되돌렸습니다. 그래서 확대가 끊겨 줌 값만 바뀌고 화면은 그대로 멈췄습니다.테스트
npm run lintnpm test(.env.local환경변수를 넣고 실행했습니다. 넣지 않으면 36개 파일이NEXT_PUBLIC_API_BASE_URL이 없어 불러오기에서 실패하며, 이번 변경과는 무관합니다)npm run build🤖 Generated with Claude Code