-
Notifications
You must be signed in to change notification settings - Fork 29.7k
closes #150048 Autocomplete don't hide options when keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag on desktop #150317
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
Conversation
707ec4c to
7833e38
Compare
|
@justinmc please review it in your feasible time. |
|
@justinmc sir please review this PR . |
justinmc
left a comment
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.
Sorry for the late review here. See the table below for my understanding of this behavior.
| Scenario | Is the field unfocused with ScrollViewKeyboardDismissBehavior.onDrag? (master) | Is the field unfocused with ScrollViewKeyboardDismissBehavior.onDrag? (this PR) |
|---|---|---|
| MacOS scrolling with a trackpad or mouse | Yes | Yes |
| Desktop web scrolling with trackpad or mouse | No | Yes |
| Android scrolling with finger | Yes | Yes |
| iOS scrolling with finger | Yes | Yes |
I think I agree with the change in this PR, though the name onDrag and the deliberate check for dragDetails being null makes me wonder why it was written that way in the first place. @gaaclarke Do you have any thoughts since you wrote ScrollViewKeyboardDismissBehavior? #52068
Also @adonisRodxander does this fix your problem from #150048?
packages/flutter/test/widgets/single_child_scroll_view_test.dart
Outdated
Show resolved
Hide resolved
|
@justinmc yes, The behavior you describe in the previus table is what i'm looking for |
70a308b to
5983bb3
Compare
justinmc
left a comment
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.
Looks like @gaaclarke is out of office for awhile, but I think we do want this change, so let's move forward with it 👍 . If you see this when you get back and have thoughts let me know @gaaclarke.
Just some small stuff to clean up.
packages/flutter/test/widgets/single_child_scroll_view_test.dart
Outdated
Show resolved
Hide resolved
…crollViewKeyboardDismissBehavior.onDrag on desktop flutter#150048
…missBehaviour is set to ScrollViewKeyboardDismissBehavior.onDrag
5983bb3 to
3e0abde
Compare
a98baf1 to
c46de20
Compare
|
@justinmc please review it in your available time |
It's been a long time since I wrote this but this sounds reasonable. My interpretation is that |
justinmc
left a comment
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.
I tried the test on master and it passes.
packages/flutter/test/widgets/single_child_scroll_view_test.dart
Outdated
Show resolved
Hide resolved
I changed the test case to make it more meaningful for this issue. please review it in your available time. |
justinmc
left a comment
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.
I tried the test on master again and it still passes. Can you try running it on master and make sure it breaks? That way if your change gets undone somehow, the test will fail and we'll be aware.
93e617e to
81e510c
Compare
81e510c to
553fb5d
Compare
|
(triage): @D-extremity Do you still have plans to follow up on the feedback given above? |
|
#154675 is closer to completion. If that lands first, this PR should be closed. |
|
Thank you for your contribution. I'm going to close this PR for now since there are outstanding comments, just to get this off our PR review queue. Please don't hesitate to re-open or submit a new PR if you have the time to address the review comments. Thanks! |
In windowsx Linux, MacOs
ScrollController().position.pixelswill not recognize mouse pointer or scroll wheel of mouse if it's scrolled or not until its tapped on screen.but for feature we just need to check if focus if there or not.
Now it is working for android,website,windows,macos and linux
closes #150048
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on [Discord].