Skip to content

Don't enable scroll wheel when scrolling is off#37211

Merged
stuartmorgan-g merged 5 commits intoflutter:masterfrom
stuartmorgan-g:disable-scrollwheel
Aug 3, 2019
Merged

Don't enable scroll wheel when scrolling is off#37211
stuartmorgan-g merged 5 commits intoflutter:masterfrom
stuartmorgan-g:disable-scrollwheel

Conversation

@stuartmorgan-g
Copy link
Contributor

Description

NeverScrollableScrollPhysics should prevent all scrolling, but the new scrollwheel codepath wasn't checking it.

Related Issues

Fixes #35304

Tests

I added the following tests: 'Scroll pointer signals are ignored when scrolling is disabled'

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

NeverScrollableScrollPhysics should prevent all scrolling, but the new
scrollwheel codepath wasn't checking it.

Fixes flutter#35304
@fluttergithubbot fluttergithubbot added the framework flutter/packages/flutter repository. See also f: labels. label Jul 30, 2019
@Piinks Piinks added a: desktop Running on desktop customer: octopod labels Jul 31, 2019
Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

Modulo adding null check.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: desktop Running on desktop customer: octopod framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Horizontal trackpad gestures bypass NeverScrollableScrollPhysics

6 participants