新增中心線吸附功能:OnScreenWidgetView 與 LayoutOnScreenControls#131
Open
HsunLu wants to merge 2 commits intoThe-Fried-Fish:Integrationfrom
Open
新增中心線吸附功能:OnScreenWidgetView 與 LayoutOnScreenControls#131HsunLu wants to merge 2 commits intoThe-Fried-Fish:Integrationfrom
HsunLu wants to merge 2 commits intoThe-Fried-Fish:Integrationfrom
Conversation
Collaborator
|
试了一下, 感觉微调的空间没有了,过段时间再考虑 |
Author
28e2f13 to
4a9e109
Compare
b20d6f1 to
5c646ef
Compare
9e6c22a to
138658c
Compare
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.

功能內容
中心線對齊吸附
在編輯模式中拖曳時,當控件中心線與其他控件(或舊版控件)中心線在 ±5pt 範圍內時,會自動吸附。
X、Y 軸獨立判斷,確保吸附行為自然。
雙向吸附
新版控件與舊版控件也可以相互吸附。
脫離判斷一致化
與舊式 OSC 相同:只要手指離開對齊線超過閾值,下一幀立即脫離吸附。
避免了 Swift 端原本 offset 累加帶來的「黏性」問題。