Skip to content

新增中心線吸附功能:OnScreenWidgetView 與 LayoutOnScreenControls#131

Open
HsunLu wants to merge 2 commits intoThe-Fried-Fish:Integrationfrom
HsunLu:feature/centerline-snap
Open

新增中心線吸附功能:OnScreenWidgetView 與 LayoutOnScreenControls#131
HsunLu wants to merge 2 commits intoThe-Fried-Fish:Integrationfrom
HsunLu:feature/centerline-snap

Conversation

@HsunLu
Copy link
Copy Markdown

@HsunLu HsunLu commented Sep 26, 2025

功能內容

  1. 中心線對齊吸附
    在編輯模式中拖曳時,當控件中心線與其他控件(或舊版控件)中心線在 ±5pt 範圍內時,會自動吸附。
    X、Y 軸獨立判斷,確保吸附行為自然。

  2. 雙向吸附
    新版控件與舊版控件也可以相互吸附。

  3. 脫離判斷一致化
    與舊式 OSC 相同:只要手指離開對齊線超過閾值,下一幀立即脫離吸附。
    避免了 Swift 端原本 offset 累加帶來的「黏性」問題。

@TrueZhuangJia
Copy link
Copy Markdown
Collaborator

试了一下, 感觉微调的空间没有了,过段时间再考虑

@HsunLu
Copy link
Copy Markdown
Author

HsunLu commented Sep 30, 2025

新增了中心線吸附開關,方便使用者自行選擇模式
IMG_5481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants