selecto
selecto copied to clipboard
Feature Request: SelectByClick on mouseUp events
Environments
- Framework name: Selecto
- Framework version: 1.13.0 and later
- Component name: React-Selecto
- Component version: 1.13.0 and later
- Testable Address(optional): e.g.: https://daybrush.com/selecto/storybook/?path=/story/selecto--continue-to-select-through-the-toggle-key
Description
Hi, thank you for providing such a great Library.
I am trying to integrate Selecto together with React Moveable into BigBlueButton as part of my Bachelor Thesis: bigbluebutton/bigbluebutton#13929, bigbluebutton/bigbluebutton#2351
It seems like SelectByClick only works on mouseDown events and not on mouseUp events. It would be great if there will be an option to configure that the Selection gets only added on mouseUp events.
@MW360
So I will change the behavior. Thank you.
@MW360
selecto1.14.0react-selecto1.14.0preact-selecto1.14.0ngx-selecto1.14.0svelte-selecto1.14.0vue-selecto1.14.0vue3-selecto1.0.0lit-selecto1.14.0
selecto's new version is released. Check it again.
clickBySelectEnd option is added.
https://github.com/daybrush/selecto#option-behaviors
Set options:
- selectFromInside: false
- selectByClick: true
- clickBySelectEnd: true
Hi, thank you for implementing the feature!
Unfortunatly, it seems that my description of the feature was not detailed enough.
So I think the problem was this sentence of my description:
option to configure that the Selection gets only added on mouseUp events
I meant selection on mouseUp additionally to selection on drag. Further, the continueSelect and toogleContinue select should also work with selection on mouseUp. Also my idea was that selectFromInside should still be possible. So on drag, only the selection rectangle should be used for selection. On click on a single target without a further dragging, the element should be selected on mouseUp.
Sorry for my misleading description,
Best regards, Maximilian