You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you described in #136, the way to get the selected and stored elements on "stop" event is calling .getSelection(). However, it doesn't seem to work when the selection is made by click and drag (selection by click works as expected).
What is the current behavior?
<-- What happens in your situation -->
Calling .getSelection() on "stop" event after a drag selection returns only previously selected elements.
Please provide the steps to reproduce and create a CodeSandbox.
What is the problem?
As you described in #136, the way to get the selected and stored elements on "stop" event is calling .getSelection(). However, it doesn't seem to work when the selection is made by click and drag (selection by click works as expected).
What is the current behavior?
<-- What happens in your situation -->
Calling .getSelection() on "stop" event after a drag selection returns only previously selected elements.
Please provide the steps to reproduce and create a CodeSandbox.
https://codesandbox.io/s/viselect-svg-example-forked-99zp2?file=/src/main.js
What is the expected behavior?
Calling .getSelection() on "stop" event should return both selected and stored elements.
Your environment:
The text was updated successfully, but these errors were encountered: