From b730ce12667fb75c99b97eafcfc73d7b1f8bdd13 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 21 Oct 2026 21:05:10 -0300 Subject: GUI scrollbar thumb moves by the pixel and follows the glide --- src/surface.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/surface.zig') diff --git a/src/surface.zig b/src/surface.zig index f7cc6010..e67cf21c 100644 --- a/src/surface.zig +++ b/src/surface.zig @@ -368,6 +368,11 @@ pub const Region = struct { /// regions once render has returned. thumb_y: u16 = 0, thumb_h: u16 = 0, + /// The same thumb unrounded, for a pixel shell: its top and its length + /// as fractions of the track (the length before any minimum, so one + /// row of the content is `thumb_span / rect.h`). Zero when unmeasured. + thumb_at: f32 = 0, + thumb_span: f32 = 0, /// A notice's index in its pane's `notices`. notice: u8 = 0, /// How far it stands off the page, 0 to 1: a pane's while it has the -- cgit v1.3