Set focus on gesture tap
Normally we set focus on mousedown and touchstart. But if the page doesn't have any touch handlers we filter out all the touch events and so the view will not get the focus. So when a gesture tap comes to generate mouse events and etc page doesn't have focus. This CL also adds the foucs on gesture tap to make sure the appropriate view is focused. If the view is already focus due to previous touch start or mouse down this does nothing. Bug: 861998 Change-Id: Icf10910533d694111fe6c106fbb41b48f57165d5 Reviewed-on: https://chromium-review.googlesource.com/1158714 Commit-Queue: Navid Zolghadr <nzolghadr@chromium.org> Reviewed-by:Lucas Gadani <lfg@chromium.org> Reviewed-by:
Ken Buchanan <kenrb@chromium.org> Reviewed-by:
Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#580248}
Showing
Please register or sign in to comment