Skip to content

Conversation

@moffatman
Copy link
Contributor

@moffatman moffatman commented Oct 6, 2022

To get floating cursor selection to work on iPhone, we need the selection rects. Not sure what is the performance impact of this...

Needed to fix #30476

Related engine PR: flutter/engine#36643

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. labels Oct 6, 2022
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Support for selection rects was done exclusively for the Scribble feature, which is why there's that that early return for non-iPad devices. If we need selection rects for the floating cursor on iPhones, I see no reason not to send them. The performance impact should be negligible. CC @fbcouch who wrote the Scribble feature.

@justinmc justinmc added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 6, 2022
@auto-submit auto-submit bot merged commit af2d5bc into flutter:master Oct 6, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 7, 2022
auto-submit bot pushed a commit to flutter/engine that referenced this pull request May 11, 2023
Floating cursor selection hasn't worked as we haven't been returning a real value for `caretRectForPosition:`. If we have the selection rectangles, we can do so. 

Fixes [#30476](flutter/flutter#30476)

Requires selection rects to be turned on for iPhone (flutter/flutter#113048)

writing and running engine tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support floating cursor double press on iOS

2 participants