forked from joejulian/gio
cc2d2c0abf3ba7dcbc1979c48ef7b4bff88bc432
This commit updates the logic that computes scroll viewport coordinates to correctly consume layout.Position.OffsetLast, which was previously ignored. The impact of ignoring that field was that dragging on a scroll indicator could sometimes fail to reach the end of the list. I've updated the logic to consume that field, which increased the amount of visual jitter in the position of the scrollbar. I then also added a mechanism for smoothing the jitter by using both methods of deriving the viewport and synthesizing a viewport from both. This new strategy exhibits a lower standard deviation than the other options on each of: - the length of the scroll indicator - the change in the start coordinate of the viewport when scrolling smoothly - the change in the end coordinate of the viewport when scrolling smoothly Fixes: https://todo.sr.ht/~eliasnaur/gio/504 Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
Gio - https://gioui.org
Immediate mode GUI programs in Go for Android, iOS, macOS, Linux, FreeBSD, OpenBSD, Windows, and WebAssembly (experimental).
Installation, examples, documentation
Go to gioui.org.
Issues
File bugs and TODOs through the issue tracker or send an email to ~eliasnaur/gio@todo.sr.ht. For general discussion, use the mailing list: ~eliasnaur/gio@lists.sr.ht.
Contributing
Post discussion to the mailing list and patches to gio-patches. No Sourcehut account is required and you can post without being subscribed.
See the contribution guide for more details.
An official GitHub mirror is available.
Description
Languages
Go
89.6%
C
7%
Java
1.7%
Objective-C
1.6%