isPointerOverTrackV method

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

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

Implementation

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