New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Scrollbar drag behavior #112434
Improve Scrollbar drag behavior #112434
Conversation
| @@ -1446,15 +1457,15 @@ class RawScrollbar extends StatefulWidget { | |||
| /// Provides defaults gestures for dragging the scrollbar thumb and tapping on the | |||
| /// scrollbar track. | |||
| class RawScrollbarState<T extends RawScrollbar> extends State<T> with TickerProviderStateMixin<T> { | |||
| Offset? _dragScrollbarAxisOffset; | |||
| Offset? _startDragScrollbarAxisOffset; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TahaTesser Thanks for the sync info, I tested it and it did fix the issue by accident. : )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Piinks Hi, do you have a chance to take a look at this change? : )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, apologies! I was out of town and this got buried in my inbox. I checked it out before I left and forgot to click submit - sorry!
Thank you, this maybe also help to implement the infinite scrollbar. You know that the infinite scrollable's scroll extent always changes. |

This change lets the thumb always follow the pointer even if the scroll extent changed when dragging the thumb.
Fixes #112072
Fixes #107765