handleHoverH method

  1. @protected
  2. @mustCallSuper
void handleHoverH(
  1. PointerHoverEvent event
)

Implementation

@protected
@mustCallSuper
void handleHoverH(PointerHoverEvent event) {
  // Check if the position of the pointer falls over the painted scrollbar
  if (isPointerOverScrollbarH(
    event.position.toLocal(context),
    event.kind,
  )) {
    _hoverIsActiveH = true;
    // Bring the scrollbar back into view if it has faded or started to fade
    // away.
    fadeoutAnimationControllerHorizontal.forward();
    _fadeoutTimerH?.cancel();
  } else if (_hoverIsActiveH) {
    // Pointer is not over painted scrollbar.
    _hoverIsActiveH = false;
    _maybeStartFadeoutTimer(vertical: false);
  }
}