isPointerOverScrollbarV method

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

Returns true if the provided Offset is located over the track or thumb of the vertical 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 isPointerOverScrollbarV(Offset position, PointerDeviceKind kind) {
  //Offset localPosition = position.toLocal(context);
  return verticalScrollbar.hitTestInteractive(position, kind, forHover: true);
}