isPointerOverThumbH method

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

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

Implementation

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