onPanUpdate method
Handles pan update event. Returns true if the pan update is affecting a drawing tool, false otherwise.
Implementation
@override
bool onPanUpdate(DragUpdateDetails details) {
if (!_isAddingToolBeingDragged) {
_isAddingToolBeingDragged = true;
}
_drawingPreview?.onDragUpdate(
details,
epochFromX,
quoteFromY,
epochToX,
quoteToY,
);
return true; // Dragging the adding tool.
}