Make UiElementContainerView scrollable.
Previously, answers were not scrollable. Now they are. To accomplish this, we've: - Created an abstract AssistantScrollView class to share logic between UiElementContainerView and SuggestionContainerView which both have the need to scroll. - Moved AssistantHeaderView out of UiElementContainerView because it should not participate in the scroll. Known issue: We still have not addressed the WebView event processing issue, so it is only possible to scroll UiElementContainerView via mouse/touch events that do not involve the WebView. This will be addressed in a follow up CL. Temporary workaround: initiate scroll events from the margins beside the cards, not over the cards themselves. Known issue: If the user scrolls the content and then issues another query, we fade out the current answer and show our thinking dots. But if the content has been scrolled, the thinking dots collide with other views. To address this, I force scroll the content back to the top and disallow events while waiting for the next answer to come in. Need UX guidance on what might be a better approach. See bug for demo. Bug: b:110039692 Change-Id: I20dbca681b92981857c4266ef1882642503eb0da Reviewed-on: https://chromium-review.googlesource.com/1172144 Commit-Queue: David Black <dmblack@google.com> Reviewed-by:Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#582650}
Showing
Please register or sign in to comment