-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add iOS tap in empty space to show toolbar, Android long-press in empty space to show toolbar. (Resolves #1472) #1476
Add iOS tap in empty space to show toolbar, Android long-press in empty space to show toolbar. (Resolves #1472) #1476
Conversation
…ty space to show toolbar. (Resolves #1472)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a couple comments.
final didTapOnExistingSelection = exactTapTextPosition != null && | ||
_selectionBeforeTap != null && | ||
(_selectionBeforeTap!.isCollapsed | ||
? exactTapTextPosition == _selectionBeforeTap!.extent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we compare just the offset to consider selections with different affinities equal?
// Toggle the toolbar display when the user taps on the collapsed caret, | ||
// or on top of an existing selection. | ||
final didCaretStayInSamePlace = _selectionBeforeTap != null && | ||
_selectionBeforeTap == widget.textController.selection && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here about selection affinity.
…ty space to show toolbar. (Resolves superlistapp#1472) (superlistapp#1476)
Add iOS tap in empty space to show toolbar, Android long-press in empty space to show toolbar. (Resolves #1472)