GraphiteEditor/Graphite

Lasso/box selection switching and usage over existing layers

Open

#2,647 建立於 2025年5月16日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Rust (1,176 fork)batch import
Good First IssuePaper Cut

倉庫指標

Star
 (25,662 star)
PR 合併指標
 (平均合併 6天 9小時) (30 天內合併 65 個 PR)

描述

We want to update dragging and selection such that:

  • Ctrl+drag's lasso selection, upon releasing Ctrl, switches to a regular box selection, and back to lasso by holding Ctrl again. It draws a straight line between the cursor position last time the lasso was removed and when it's now restored, allowing the user to also use this as a technique for drawing straight line sections of the lasso, but also just to decide to use box selection instead of lasso at any time.
  • Ctrl+dragging an object currently drags its layer(s) but we want to make it instead always lasso select. This lets the user perform a lasso selection over an existing layer, or a box selection but releasing Ctrl as in the previous bullet point.
  • Lasso selection has a bug that should be fixed: aborting the lasso selection (RMB or Esc) then creating a new lasso selection ends up erroneously extending the previously drawn lasso path because abort fails to clear the lasso data (which also wastes memory!). (#2792)

貢獻者指南