lassoEnd
with no point in selection does not publish deselect event
#132
Labels
bug
Something isn't working
After selecting an empty region with the lasso, the
select
event is always triggered, with 0 points array:Internally, the function clears the
selectionPoints
state and triggers thedeselect
method:In the
deselect
method, thelassoClearEvent
checks goes through, which clears the lasso, but since theselectedPoints
array have been updated in theselect
method to have a length of 0, thepubSub.publish('deslect')
event is never triggered.Creating a PR now.
The text was updated successfully, but these errors were encountered: