react-selectable-fast icon indicating copy to clipboard operation
react-selectable-fast copied to clipboard

Selectbox interferes with mouse events when dragging to the upper left

Open drheinheim opened this issue 7 years ago • 0 comments

In short, when dragging the selection box toward the upper left, react-selectable-fast interferes with mouse events on selectable items (or any items under the mouse for that matter). As far as I can tell, the mouse intermittently moves from the select box element to the selectable element.

This is a problem because I want to track whether or not the mouse is over a selectable element, with mouseenter and mouseleave events (in order to disable react-selectable-fast so that I can drag the selected elements; that's irrelevant, but if there's some other way to disable RSF after starting to drag, I'm listening). The mouseleave event is fired last, I'm guessing because the mouse is leaving the selectable element and entering the select box element. This problem does not occur when dragging down and/or left.

drheinheim avatar Oct 31 '18 01:10 drheinheim