GraphiteEditor / GraphiteEditor/Graphite

Line tool needs Ctrl to lock angle only after drag has begun

未关闭
#3,771 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Good First Issue
主要语言
Rust
星标
27.2k
派生
1.3k
平均合并
20 小时 5 分钟
30 天内合并 PR
57

描述

Ctrl is the shortcut for the Line tool to lock the current angle. But currently, it takes effect if Ctrl is held before the click and drag for drawing a new line, which is not desired, because Ctrl is also used to allow drawing a new line snapped to the endpoint of an existing line (rather than dragging around that endpoint). Ctrl should only lock the line's angle if it is pressed after the dragging is already occurring, whether that's for a new line or for dragging the endpoint of an existing line.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位 Line 工具的指针拖动处理,以及拖动现有线段端点的逻辑。跟踪 Ctrl 在拖动前和拖动期间的解释方式,然后验证:在按住 Ctrl 的情况下开始拖动会保留端点吸附,而在拖动开始后再按下它会在两种情况下锁定角度。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
computer-graphics, design
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。