Skip to content
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

fix: thumb's offset when panning inside the scrollbar area #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LucasVinicius314
Copy link

@LucasVinicius314 LucasVinicius314 commented May 22, 2024

Fixing the scrollbar's thumb offset when panning.

Fixes #10.

@@ -1,5 +1,6 @@
name: example
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating the parent lib's path

url: "https://pub.dev"
source: hosted
version: "0.1.0"
path: ".."
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating the parent lib's path

@@ -176,6 +167,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
web:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating web dependencies

@@ -344,6 +344,14 @@ class _FlexibleScrollbarState extends State<FlexibleScrollbar> {
!isVertical && widget.draggable ? onDragUpdate : null,
onHorizontalDragEnd:
!isVertical && widget.draggable ? onDragEnd : null,
onPanDown: (details) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixing the unexpected scrollbar thumb's behavior when panning. it's offset incremented twice as fast as it should have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scroll bar offset does not match cursor offset on Flutter Web
1 participant