Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧩 Feature: Drag Select #36

Open
KL13NT opened this issue Feb 10, 2021 · 2 comments
Open

🧩 Feature: Drag Select #36

KL13NT opened this issue Feb 10, 2021 · 2 comments
Assignees

Comments

@KL13NT
Copy link
Owner

KL13NT commented Feb 10, 2021

Is your feature request related to a problem? Please describe.
On multiple operating systems, when clicking, holding, and dragging the mouse over a collection of files, all the files in the selection range are selected. If this could be implemented in Clippy it'd make the effort of selecting multiple consecutive entry items a lot easier.

Describe the solution you'd like
Adding a click handler that adds a mousemove listener and creates a rectangular selection zone based on mouse movement may be a way to implement this.

Describe alternatives you've considered
A library exists for this, called SelectionJS. We could either mock its behavior or use it right away. It's only 4 KBs.

Additional context
The behavior would be the same across Windows and Linux since it's rather dependent on the render Chromium process.

@iamkacperwasik
Copy link
Contributor

Hi. Can you assign me to this one?

@KL13NT
Copy link
Owner Author

KL13NT commented May 8, 2021

Absolutely. Note that using the library inside of React directly could break existing functionality because of the classes added by the library, so you should try that out first before going all-in. The affected 'selectable' target will be the ul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants