fix: scrubber scroll error when page is not long enough (#19809)

pull/19818/head
Alex 2025-07-07 23:30:47 +07:00 committed by GitHub
parent a87c2e82cd
commit dd94ad17aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 13 deletions

@ -354,6 +354,8 @@ class ScrubberState extends ConsumerState<Scrubber>
isDragging: _isDragging,
),
),
if (_scrollController.hasClients &&
_scrollController.position.maxScrollExtent > 0)
PositionedDirectional(
top: _thumbTopOffset + widget.topPadding,
end: 0,