updateHorizontalScrollPosition method

void updateHorizontalScrollPosition(
  1. Offset updatedOffset
)

Implementation

void updateHorizontalScrollPosition(Offset updatedOffset) {
  Matrix4 transform = controlInterface.getTransform();
  _updateScrollPositionP(
    updatedOffset,
    _startDragScrollbarAxisOffsetH,
    _lastDragUpdateOffsetH,
    _startDragThumbOffsetH,
    horizontalScrollbar,
    horizontalScrollbar.textDirection == TextDirection.ltr
        ? AxisDirection.right
        : AxisDirection.left,
    transform.getTranslation().x,
    getScrollMetricsH(transform, controlInterface.getViewport(),
        controlInterface.getContent()),
    controlInterface.jumpHorizontal,
  );
}