1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 02:12:37 +01:00

Codechange: Add OnScrollbarScroll window event, called when a scrollbar position changes.

This commit is contained in:
Peter Nelson
2025-05-14 18:06:49 +01:00
committed by Peter Nelson
parent 321f7e8683
commit 780c26237f
3 changed files with 24 additions and 4 deletions

View File

@@ -240,6 +240,7 @@ static void ScrollbarClickPositioning(Window *w, NWidgetScrollbar *sb, int x, in
if (changed) {
/* Position changed so refresh the window */
w->OnScrollbarScroll(sb->GetIndex());
w->SetDirty();
} else {
/* No change so only refresh this scrollbar */