-
Notifications
You must be signed in to change notification settings - Fork 133
Description
Error description
The "SelectedHandler" is not called every time an object is clicked, but it's only called when no object are selected before clicking on a object.
Step to reproduce
Add a listener function using addSelectedHandler(handler: {handler: ?Function}).
Click on an object in the model (the handler is called).
Click on a different object.
Current result
The handler is not called.
Expected result
The handelr is called every time an object is clicked (every time the selected object changes).
Additional info
When clicking on an empty space inside the model (effectively deselecting the object), the handler will be called again.
Once no object are selected, clicking on a new object will call the handler.
Every time an object is clicked (even when the handler is not called) the following message appears on the console:
Picked Object { <object_details> }