react-drag-to-select
react-drag-to-select copied to clipboard
A react library which adds drag to select to your app
In my project, select can occur within the HTMLElement "doc-viewer": > `eventsElement: document.getElementById("doc-viewer")` Once drag selection ends, we show a div for that box area on top of "doc-viewer". Ideally,...
Will touch screen support be coming soon?
I'm using this in a "infinite" div which allows zooming using css transfrom `scale` property. When scaled, the position of the box is in correct because it is positioning based...
When either a margin or div is above the component containing the DragSelection component, the top coordinate of the selection box is off by that height. To reproduce, just add...
Summary This PR removes an unused parameter from the function 'getPointFromEvent' to improve code clarity and maintainability. After reviewing the code, it was confirmed that this parameter is not being...
In all cases where the getPointFromEvent function is used, rect is passed as getParentBoundingClientRect(). Is there any specific reason for explicitly providing rect as an argument when it's always the...
I have a project at work that I'm attempting to update from React 18.3.1 to React 19.0.0. I'm getting errors because `react-drag-to-select` only specifies React versions 16-18 as compatible. ```...
Just as the title says, releasing the mouse button when over a media element with controls enabled will simply continue the selection instead of ending it. This happens on both...