git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit054d8fd2a7e9217e870305f262cc7a7a93f4e467
parent43c5e0facd
authorLucas Galante <[email protected]>
date2026-07-03 01:03
Added scroll changes sync to TreeList::tick to trigger text layout updates during dragging

 src/widget/container/treelist.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/widget/container/treelist.rs b/src/widget/container/treelist.rs
index 3289a9d..a240fd4 100644
--- a/src/widget/container/treelist.rs
+++ b/src/widget/container/treelist.rs
@@ -494,6 +494,12 @@ impl Element for TreeList {
             self.mark_dirty(ctx);
             changed = true;
         }
+        if (self.scroll_box.scroll_y - self.last_scroll_y).abs() > 0.01 {
+            self.last_scroll_y = self.scroll_box.scroll_y;
+            self.scrollbar_activity_timer = 1.0;
+            self.mark_dirty(ctx);
+            changed = true;
+        }
         if self.scrollbar_activity_timer > 0.0 {
             self.scrollbar_activity_timer = (self.scrollbar_activity_timer - dt).max(0.0);
             changed = true;