-
-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(edgeless): adjust logic of dragging selection (#8842)
Close [BS-2023](https://linear.app/affine-design/issue/BS-2032/[improvement]-框选行为) ### What Changed - Refined clicking selection on frames: - If a frame has a title, it can only be selected by clicking the title. - If a frame does not have a title, it can be selected by clicking anywhere within the frame area. - Refined dragging selection on frames: - If a frame is empty, it can be selected if the dragging rectangle intersects with the frame. - If a frame is not empty, it can be selected only if the dragging rectangle contains the entire frame. - Refined dragging selection on mindmaps: - A single node can be selected. - The entire mindmap can be selected only if the dragging rectangle contains the entire mindmap. - Tests updated https://github.com/user-attachments/assets/e3414945-93f9-411a-87f2-c8a3dc033c1e
- Loading branch information
Showing
6 changed files
with
97 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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