Lemoncode / Lemoncode/quickmock
use-multiple selection and dragging inside multiple selection but white area
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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