handlePointerDown method
Called when a pointer-down event occurs.
Implementation
@override
void handlePointerDown(MouseMsg event, Offset localPosition) {
super.handlePointerDown(event, localPosition);
_downGlobal = Offset(event.x.toDouble(), event.y.toDouble());
_downLocal = localPosition;
addCmd(
onTapDown?.call(
TapDownDetails(
globalPosition: _downGlobal!,
localPosition: _downLocal!,
button: event.button,
ctrl: event.ctrl,
alt: event.alt,
shift: event.shift,
),
),
);
}