handleLongPressStart method

  1. @override
void handleLongPressStart(
  1. LongPressStartDetails details
)

Called when a long press gesture by a primary button has been recognized in behavior.

Implementation

@override
void handleLongPressStart(LongPressStartDetails details) {
  if (parentBox == null || !enableSelectionZooming) {
    return;
  }
  final Offset position = parentBox!.globalToLocal(details.globalPosition);
  if (_zoomRectStartPosition != position) {
    _zoomRectStartPosition = position;
  }
}