Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IME Deltas - Two-finger scrolling on Mac trackpad changes selection #118642

Closed
@matthew-carroll

Description

@matthew-carroll

Reproduction: Place the caret in a SuperTextField on a Mac. Place two fingers on the trackpad. Slide in any direction.

Expected: Nothing happens

Actual: The selection moves with the fingers.

Screen.Recording.2023-01-17.at.1.16.04.PM.mov

This behavior may be intentional, but we don't want it, and it's unclear how we turn it off.

We're receiving text editing deltas from the Mac IME, e.g.,

Received delta: TextEditingDeltaNonTextUpdate#fcaf4(oldText: Super Editor is an open source text editor for Flutter projects., selection: TextSelection(baseOffset: 64, extentOffset: 36, isDirectional: false), composing: TextRange(start: -1, end: -1))

We can't distinguish between that delta and another delta that represents a legitimate IME selection change.

Flutter 3.7.0-21.0.pre.42 • channel master • https://github.com/flutter/flutter.git
Framework • revision 1220245b33 (3 days ago) • 2023-01-14 19:53:06 -0500
Engine • revision f790304409
Tools • Dart 3.0.0 (build 3.0.0-122.0.dev) • DevTools 2.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopd: api docsIssues with https://api.flutter.dev/f: gesturesflutter/packages/flutter/gestures repository.frameworkflutter/packages/flutter repository. See also f: labels.platform-macBuilding on or for macOS specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions