Skip to content

[material_ui] Document RefreshIndicator mouse behavior on desktop and web - #13286

Merged
muralikrishmt merged 2 commits into
flutter:mainfrom
muralikrishmt:refresh-indicator-mouse-docs
Nov 5, 2026
Merged

muralikrishmt merged 2 commits into
flutter:mainfrom
muralikrishmt:refresh-indicator-mouse-docs

Conversation

@muralikrishmt

@muralikrishmt muralikrishmt commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Adds a "Refresh indicator does not respond to a mouse" section to the RefreshIndicator troubleshooting docs. It explains that:

  • Clicking and dragging with a mouse doesn't trigger the refresh indicator by default, because ScrollBehavior.dragDevices doesn't include PointerDeviceKind.mouse.
  • Mouse wheel scrolling never triggers it, because it isn't a drag gesture.
  • Touch screens trigger it on all platforms, and trackpads do in desktop apps. On the web, trackpad scrolling is handled like mouse wheel scrolling, so it doesn't.
  • To support mouse users, apps can add a refresh button or shortcut that calls RefreshIndicatorState.show, or add PointerDeviceKind.mouse to ScrollBehavior.dragDevices (with a code example and a note about the text-selection trade-off).

This is a documentation-only change (test-exempt) with no behavior changes. It adds a pending changelog entry (version: patch).

Fixes flutter/flutter#135510

%23%23 Pre-Review Checklist

If you need help, consider asking for advice on the %23hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

… web

Adds a troubleshooting section explaining why mouse drags and mouse wheel scrolling don't trigger RefreshIndicator on desktop and web, and how to support mouse users.

Fixes flutter/flutter#135510
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If both you and the PR author believe this PR qualifies for a test exemption, escalate to the tech lead for the changed area to review and apply the test-exempt label. All reviewers should feel empowered to ask for tests before escalating.

@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Oct 16, 2026
@google-cla

google-cla Bot commented Oct 16, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds documentation to RefreshIndicator explaining why it does not respond to mouse gestures on desktop and web by default, and details how to enable mouse support. It also adds a corresponding changelog entry. There are no review comments, and I have no feedback to provide.

@muralikrishmt

Copy link
Copy Markdown
Contributor Author

This PR only changes doc comments, plus a pending changelog entry, so I believe it qualifies for a test exemption ("only affect comments (including documentation)" in Tree Hygiene.

@elliette elliette added the test-exempt Exempt from tests. Overrides `missing-tests` label label Nov 4, 2026

@elliette elliette left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! Looks good to me. I agree this PR is test exempt.

@muralikrishmt
muralikrishmt merged commit 0478162 into flutter:main Nov 5, 2026
13 checks passed
bkonyi pushed a commit to bkonyi/flutter that referenced this pull request Nov 5, 2026
…er#196047)

flutter/packages@670b30e...0478162

2026-11-05 mkmt@google.com [material_ui] Document RefreshIndicator mouse
behavior on desktop and web (flutter/packages#13286)
2026-11-05 45147003+samar70@users.noreply.github.com [material_ui] Make
SearchAnchor.bar respect SearchBarThemeData padding
(flutter/packages#13360)
2026-11-04 kevmoo@users.noreply.github.com [pointer_interceptor] Use
dart.library.js_interop in example export (flutter/packages#13558)
2026-11-04 louisehsu@google.com [in_app_purchase_storekit] Use
purchase(confirmIn:) for StoreKit 2 purchases (flutter/packages#13410)
2026-11-04 41366638+kirya355@users.noreply.github.com [material_ui] Fix
dismissal near minimum extent when shouldCloseOnMinExtent
(flutter/packages#12545)
2026-11-04 36861262+QuncCccccc@users.noreply.github.com [material_ui]
Add Material 3 Expressive `ElevatedButton` (flutter/packages#13084)
2026-11-04 108947675+IbrarIlyas@users.noreply.github.com [go_router]
Stop inactive StatefulShellRoute branches from vetoing pops
(flutter/packages#12972)
2026-11-04 engine-flutter-autoroll@skia.org Manual roll Flutter (stable)
from abaf9c5 to c197ca5 (14 revisions)
(flutter/packages#13542)
2026-11-04 stuart.morgan@gmail.com [in_app_purchase] Convert example app
to Swift (flutter/packages#13556)
2026-11-04 fluttergithubbot@gmail.com Sync release-go_router-18.1.3 to
main (flutter/packages#13559)
2026-11-04 fluttergithubbot@gmail.com Sync release-material_ui-1.10.0 to
main (flutter/packages#13546)
2026-11-04 43054281+camsim99@users.noreply.github.com
[camera_android_camerax] Add magic number guideline to `TESTING.md`
(flutter/packages#13081)
2026-11-04 fluttergithubbot@gmail.com Sync release-cupertino_ui-1.1.6 to
main (flutter/packages#13547)
2026-11-04 stuartmorgan@google.com [file_selector] Convert unit tests to
Kotlin (flutter/packages#13102)
2026-11-04 engine-flutter-autoroll@skia.org Roll Flutter from
9347202 to 3623d2d (25 revisions) (flutter/packages#13555)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD missing-tests p: material_ui test-exempt Exempt from tests. Overrides `missing-tests` label triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update or document RefreshIndicator behavior on desktop

2 participants