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.
What is this PR? 🔍
Changes 📝
드래그 앤 드랍 충돌 알고리즘을 변경했습니다.
이전의
pointerWithin
은 마우스의 위치만 추적하느라, 아래의 gif처럼 쭉 아래로 땡겼을 때 아래로 정렬이 아닌 원래 자리로 돌아갔습니다.그리고
closestCenter
는 쭉 아래로 땡겼을 때 아래로 이동할 수 있었지만 북마크를 폴더로 이동할 수 없었습니다.따라서 �drop이 가능한 영역에서는
pointerWithin
으로 세밀하게 조정이 되고 그렇지 않은 경우에는closestCenter
로 자연스러운 동작이 구현되게 하였습니다.ScreenShot 📷
Precaution