isPointerOverScrollbarH method

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

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

The hit test area for mouse hovering over the scrollbar is larger than regular hit testing. This is to make it easier to interact with the scrollbar and present it to the mouse for interaction based on proximity. When forHover is true, the larger hit test area will be used.

Implementation

@protected
bool isPointerOverScrollbarH(
  Offset position,
  PointerDeviceKind kind,
) {
  return horizontalScrollbar.hitTestInteractive(position, kind,
      forHover: true);
}