Lemoncode / Lemoncode/quickmock

use-multiple selection and dragging inside multiple selection but white area

Open
#308 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
70
Forks
23
PR merge metrics
No merged PRs in 30d

Description

src/pods/canvas/use-multiple-selection-shape.hook.tsx

// There's a bug here: if you make a multiple selectin and start dragging
// inside the selection but on a blank area it won't drag the selection
// it will just clear the selection
//
// What do we need to do here?
//
// We could get the selection transformer current coords and size
// - if the mouseDown event is click inside that rectangle abort the multiple selection by dragging
// - We can set a temporary flag here
// - When user moves check the flag
// - When user mouse up then reset the flag to false

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/pods/canvas/use-multiple-selection-shape.hook.tsx and reproduce the interaction described: drag from a blank area inside an existing multiple selection. Trace the mouse-down, move, and mouse-up handling. Done means dragging from that area moves the selection instead of clearing it, while selection behavior outside it remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.