summaryrefslogtreecommitdiff
path: root/src/surface.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-21 21:05:10 -0300
committerGabriel Schneider <[email protected]>2026-10-22 10:03:15 -0300
commitb730ce12667fb75c99b97eafcfc73d7b1f8bdd13 (patch)
treea04da809d8efe12687ed51d395deef258e7a5630 /src/surface.zig
parent2b0d9d607094739133470c10af51fd670cd63ed3 (diff)
downloadpardes-b730ce12667fb75c99b97eafcfc73d7b1f8bdd13.tar.gz
pardes-b730ce12667fb75c99b97eafcfc73d7b1f8bdd13.zip
GUI scrollbar thumb moves by the pixel and follows the glide
Diffstat (limited to 'src/surface.zig')
-rw-r--r--src/surface.zig5
1 files changed, 5 insertions, 0 deletions
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