We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d4ea4d commit 1931cd3Copy full SHA for 1931cd3
src/engine.zig
@@ -4164,7 +4164,11 @@ pub const Display = struct {
4164
}
4165
4166
4167
+ /// When the user is dragging a scrollable panel, it starts with an offset
4168
+ /// `value` of zero. If the panel overflows its box, then the offset
4169
+ /// value may decrease to the `min` offset or increase to the `max` offset.
4170
fn limit_scroll(min: f32, value: f32, max: f32) f32 {
4171
+ std.debug.assert(min <= max);
4172
if (value < min) return min;
4173
if (value > max) return max;
4174
return value;
0 commit comments