BListView: Add ScrollTo(index) method, auto-scroll on drag

Multi-select lists may also auto-scroll on drag now as well.

Document ScrollTo(index). Give Scrolling its own section.

Change-Id: I36284a28376a01bafd23ddb30162fc786fb41521
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7213
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
John Scipione
2023-12-24 02:45:59 +00:00
committed by waddlesplash
parent 8d024b7062
commit 82bfaa954d
3 changed files with 69 additions and 21 deletions
+1
View File
@@ -110,6 +110,7 @@ public:
void* arg), void* arg);
const BListItem** Items() const;
void InvalidateItem(int32 index);
void ScrollTo(int32 index);
void ScrollToSelection();
void Select(int32 index, bool extend = false);