[WIP] Disable dragging Scrollables on desktop#75728
[WIP] Disable dragging Scrollables on desktop#75728Piinks wants to merge 1 commit intoflutter:masterfrom
Conversation
|
@Piinks An idea for tackling the Part 1 (not currently blocked by #75059 or #75180)- Make gesture recognizers receive a set of pointer kinds instead of only one kind. As of today, a gesture recog can either accept all or only one specified kind, this would make room for us still accept touch and stylus drags (IDK if it is the case of keeping the stylus drag scroll or not) but ignore the mouse ones. Part 2: Add this set of PointerDeviceKind to ScrollBehavior (or a boolean like I would open a PR with these right away but since we have an ongoing initiative I didn't want to waste people's time reviewing it. |
|
Closing for now as we re-evaluate the design. :) |
WIP - status: evaluating impact :)
This is also related to Issue #40107, #70866 / PR #75354
Design Document
Both changes (this and #75354) are part of an overhaul on default
ScrollBehaviors. These changes are non-trivial and can be breaking to folks expecting different defaults in existing applications. Currently working on a larger picture design doc that incorporates both of these.I think there should also be (in this change or another) a way to provide your own
ScrollConfiguration/ScrollBehaviorin the *App widgets, or theming support for ease of control over these behaviors.Fixes #71322
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.