Since 3.0 multipart tools hog event inputs. Can't zoom/pan whilst in a draw loop. #833
Labels
Change: Implementation 💻
Change that updates implementation details w/o expanding the API
2️⃣ Priority: Medium
With the introduction of
cornerstoneTools 3.0
's new spangled event dispatcher, some tools are able to block event dispatching and deal with mouse/touch input internally to the tool. This is useful for e.g.FreehandMouseTool
, where an indeterminate number of clicks/drags are are required to complete the annotation.This currently comes with the downside of not being able to use tools bound to other input during the tools usage. It'd be really useful to be able to zoom and/or pan during a multi-part tools draw loop.
After some discussion, @dannyrb and I came to the conclusion that only non-annotation tools (i.e. when
!(tool instanceof BaseAnnotationTool)
should be usable during a multi-part draw loop. If you have a use case that requires annotation tools to be used during a multi-part draw loop, please leave a comment and discuss.TODO:
state.isToolLocked
tostate.multiPartToolActive
.state.multiPartToolActive === true
.multiPartTool
mixin with helpers for easy mouse/touch mask management for event loops. The idea is that this will be useful but optional, as multi-part tools by nature are rather non-standard.The text was updated successfully, but these errors were encountered: