-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: desktopRunning on desktopRunning on desktopc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.f: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyWeb applications specifically
Description
This PR adds support for text selection by dragging with a mouse. The current implementation only supports horizontal dragging since vertical dragging will most likely conflict with scrolling.
The solution is to make it so that scrolling is only triggered when initiated by touch events, and vertical text selection is only triggered by a mouse. No conflicts!
But with the current state of Flutter, we can't disable mouse-drag-to-scroll yet because there is no other way to scroll on desktop. Once wheel scrolling is fully implemented, we can revisit this.
- wheel scroll.
- scroll bars.
- disable drag-to-scroll when the device is a mouse.
- enable text selection by dragging in any direction.
cjng96, tgucio, pinyin and PiN73
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: desktopRunning on desktopRunning on desktopc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: gesturesflutter/packages/flutter/gestures repository.flutter/packages/flutter/gestures repository.f: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyWeb applications specifically