Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid completed event on outside boundary element (#1256)
When drawing an annotation, if it's outside the boundary of the image data, it is removed (depending on your settings). Because of the order of our callbacks, this would allow for the following scenario: - Begin drawing annotation - Drag end handle off image data - Mouseup with end handle off image data - Measurement removed from toolstate - Measurement completed 3rd party applications listening to events might think the measurement was sucessfully created. This change ensures measurementData marked as "canceled" will not emit a "completed" event (at least via manipulator default callbacks)
- Loading branch information