fix: fix scrolling cutoff for last entry in devexplorer

This commit is contained in:
2026-06-13 17:13:15 +02:00
parent 25f9d6e401
commit ee660a64f9
3 changed files with 68 additions and 54 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ struct ScrollMetrics {
int list_h; // viewport height (view extent)
int total_h; // total content height (content extent)
int max_scroll_px; // maximum pixel scroll offset
int scroll_px; // current pixel scroll offset (derived from scroll_y)
int scroll_px; // current pixel scroll offset (clamped scroll_y)
};
// Bounds of the toolbar "Refresh" button — shared by render and hit-testing.
@@ -156,7 +156,7 @@ struct DevExplorerState {
int dev_count;
bool collapsed[NUM_CATEGORIES];
int selected_row;
int scroll_y;
int scroll_y; // vertical scroll offset, in pixels (not rows)
uint64_t last_poll_ms;
int last_click_row;