Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suggest: fix shifting suggestion window
Currently the multi word suggestion window aligns itself underneath the relevant text in the currently focused input when a suggestion candidate is triggered and shown to the user. The alignment works very well, however there is a noticeable "shifting" of the window as the AssistiveWindowController class attempts to align the suggestion window based on events received. This is due to an unexpected ordering of events received to the AssistiveWindowController. A ShowSuggestion event may be received prior to SetBounds event (this is because surrounding text and cursor bounds updates are sent as two distinct events). To accomodate this, the CL adds a delay before showing a multi word suggestion to the user. The delay allows the two related events (ShowSuggestion and SetBounds) to be received before making the suggestion window visible to the user. BUG=b:241321719 Change-Id: If14fe976b244d29deea0cd08925808e7a2221e03 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3811193 Commit-Queue: Curtis McMullan <curtismcmullan@chromium.org> Reviewed-by: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/main@{#1032789}
- Loading branch information
1 parent
ce6c106
commit 7dc39e7
Showing
4 changed files
with
112 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters