Comments (3)
i've changed this line
const y = Math.min(_areaY1, _areaY2) + window.scrollY
but what if body overflow is set to hidden? and the scrollbar might inside other container?
any possible to use value from onStart or onStop event?
from selection.
What are you trying to accomplish? Don't try to map any _
prop to a state. They get heavily updated, use the area provided by selectionjs. All things which start with _
might not exist in the next commit and are "private" properties.
from selection.
This library is not meant for this usage, I suggest to implement a small library to do this. Anything is way faster as using selectionjs for this simple problem.
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
- Unselect selected elements on blur HOT 2
- 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.