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
Open console in jsfiddle, select two objects and then deselect them
Expected Behavior
Event listener of before:selection:cleared must to receive the ActiveSelection.
Actual Behavior
Event listener of selection:created receives in field target value of ActiveSelection, but event listener of before:selection:cleared receives the first object of ActiveSelection.
The text was updated successfully, but these errors were encountered:
good question. looks wrong to me.
I think the point is that in the moment the deselection happen, the active selection gets destroyed, the objects mutated back, and you are basically working on invalid targets.
The event should be fired with the current active selection, since we are releasing a breaking release i think we should fix this now.
Version
2.7.0
Test Case
https://jsfiddle.net/DenBogdanov/9t0wdvs5/
Information about environment
browser
Steps to reproduce
Open console in jsfiddle, select two objects and then deselect them
Expected Behavior
Event listener of before:selection:cleared must to receive the ActiveSelection.
Actual Behavior
Event listener of selection:created receives in field
target
value of ActiveSelection, but event listener of before:selection:cleared receives the first object of ActiveSelection.The text was updated successfully, but these errors were encountered: