Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hooks/useAlign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,8 @@ export default function useAlign(
popupMirrorRect.bottom - popupRect.y - (nextOffsetY + popupRect.height);

if (scaleX === 1) {
nextOffsetX = Math.round(nextOffsetX);
offsetX4Right = Math.round(offsetX4Right);
nextOffsetX = Math.floor(nextOffsetX);
offsetX4Right = Math.floor(offsetX4Right);
Comment on lines -701 to +702
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

round改为floor我理解没什么副作用,唯一的弊端可能就是精度差异会变大,原来最多0.5px的差异,现在最大精度差可能为0.99px,但用户真能感知到吗(

}
Comment thread
aojunhao123 marked this conversation as resolved.

if (scaleY === 1) {
Expand Down
Loading