mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
ea37124686
Once the user begins dragging, the cursor can move outside the clip area (or even the window on at least X11), leading to events with positions that are either negative, or larger than the clip area. Negative values outright break the delta tracking and cause the scrollbar to misbehave. Positive values "only" break the invariant of Scrollbar.ScrollDistance that the returned value is in the range [-1, 1]. Signed-off-by: Dominik Honnef <dominik@honnef.co>