handleThumbPressUpdateVertical method
Handler called when a currently active long press gesture moves.
Updates the position of the child scrollable.
Implementation
@protected
@mustCallSuper
void handleThumbPressUpdateVertical(Offset position) {
Offset localPosition = position.toLocal(context);
if (_lastDragUpdateOffsetV == localPosition) {
return;
}
if (!physics.shouldAcceptUserOffset(getScrollMetricsV(
controlInterface.getTransform(),
controlInterface.getViewport(),
controlInterface.getContent()))) {
return;
}
updateVerticalScrollPosition(localPosition);
_lastDragUpdateOffsetV = localPosition;
}