Comments (2)
The selectionarea also does not respond to event listeners such as onClick or onMouseDown so i could not add the desired effect on my own.
You can just add a listener to the selection-area by yourself and clear the selection if there hasn't been a selection between the pointerdown
and pointerup
events, or something like this :)
from selection.
I just tried to further experiment with it, and in the selectionarea wrapper provided, onStart only triggers when an selectable area is clicked or drag is started. This makes it such that if i drag an empty area, the selected files get unselected as desired, but i want the same behavior for a simple click.
The selectionarea also does not respond to event listeners such as onClick or onMouseDown so i could not add the desired effect on my own.
from selection.
Related Issues (20)
- Specifying document breaks the options HOT 2
- Sequenced selections are buggy HOT 5
- Warning: Invalid hook call. Hooks can only be called inside of the body of a function component HOT 1
- Make props in react / vue packages reactive HOT 2
- Could not find a declaration file for module '@viselect/react' HOT 3
- How can I use "selection" in VUE2 project? HOT 1
- Already selected items became deselected on page scrolling HOT 3
- How can we stop selection while AltKey pressed ?
- Can I get access to the store so I can clear selection when pressing Escape HOT 5
- TS7016: Could not find a declaration file for module @viselect/react . HOT 1
- Is it possible to change the selection area initial position? HOT 1
- TypeScript Error: Unable to Find Declaration File for @viselect/react Module in Next.js Project HOT 1
- Extend config and implementation to allow for choice of mouse-buttons that activate the selection-area HOT 1
- Selection area does not expand when scrolling with keyboard
- TypeError: n.__ is not a function when rendering the Component HOT 4
- Demos no longer working, codesandbox has no more credits HOT 2
- React package doesn't support changes to props HOT 2
- STOP event triggers twice
- Issues with React 19 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selection.