isPointerOverTrackH method

  1. @protected
bool isPointerOverTrackH(
  1. Offset position,
  2. PointerDeviceKind kind
)

Returns true if the provided Offset is located over the track of the horizontal Scrollbar.

Implementation

@protected
bool isPointerOverTrackH(Offset position, PointerDeviceKind kind) {
  Offset localPosition = position.toLocal(context);
  return horizontalScrollbar.hitTestInteractive(localPosition, kind) &&
      !horizontalScrollbar.hitTestOnlyThumbInteractive(localPosition, kind);
}