mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
0e60935856
The scrollbar implementation prior to this change only adjusted list.Position.Offset. This works in all circumstances except when list.Position.BeforeEnd=false. If the position indicates that the scroll position is at the end of the list, the offset is ignored. This change ensures that manually dragging the scrollbar always causes BeforeEnd to be set to true. If the drag ends with the scrollbar at the end of the list, BeforeEnd will be set automatically by the next list.Layout call, so this doesn't prevent the list from optimizing for that case in general. Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>