selecto
selecto copied to clipboard
The isDouble is always return false in onSelectEnd.
Environments
- Framework name: react
- Framework version: 16.13.1
- Component name: react-selecto
- Component version: 1.7.4
- Testable Address(optional): https://codesandbox.io/s/tender-moon-6rc3i?file=/src/App.tsx
Description
When i double click the element, onSelectEnd is triggered only once and isDouble is false(expectation is true). When i double click the blank space, onSelectEnd is triggered twice. IsDouble is false in first event and it is true in second event. I checked the inputEvent type is 'mousedown'. Does‘t meet the following conditions.
if (inputEvent && inputEvent.type !== "mousedown" && inputEvent.type !== "touchstart") {
this.trigger("dragEnd", {
isDouble: false,
isDrag: false,
...e,
rect,
});
}
@xueerli
I'll check it. Thank you :)
@daybrush Thank you too. And i have an other problem. Similar to #8, where i added a comment . In the onDragStart event, i used isMoveableElement to stop, but I cannot switch the elements in the selection group.
@xueerli
selecto1.9.1react-selecto1.9.1preact-selecto1.8.1ngx-selecto1.9.1svelte-selecto1.9.1lit-selecto1.9.2
selecto's new version is released. Check it again.
@daybrush
Unfortunately, when i updated it to 1.9.1, the selectoRef.current.clickTarget in onClickGroup event doesn't work. #8
@xueerli
selecto1.9.2react-selecto1.9.2preact-selecto1.8.2ngx-selecto1.9.2svelte-selecto1.9.2lit-selecto1.9.2
oh, sorry. new version is released. Check it again.
@daybrush Thank you very much.