Open terracoda opened 6 months ago
The original paper-programs project supports only one program per marker. Relevant code is https://github.com/phetsims/paper-land/blob/4a2ce244ef4676061d696dbc042be105b66193a5/client/utils.js#L166-L196
and the markers API https://github.com/janpaul123/paperprograms/blob/master/docs/api.md#marker-points
Lets discuss alternatives and decide if this is something we would like to work on changing.
Possible options, not sure of cost of any:
onMarkerAdded/Removed/ChangedPosition
)For now, we will try shifting the way we focus to a whisker instead of a position within bounds. If that is a problem we can revisit this. This might crop up elsewhere as a problem.
Describe the bug When I move the focus program onto and off of the checked checkbox, the state of the checkbox is changes. The focus program seems to the coming in between the mark and the checkbox program and thus unintentionally hiding and then revealing the marker on the checkbox program causing checking and unchecking events to fire.
To Reproduce Steps to reproduce the behavior:
https://github.com/phetsims/paper-land/assets/1902116/5cf68652-d19c-4b09-9feb-a0568bf8e319