Print Preview: Correctly detect scrollbars
In Polymerized Print Preview, the event target is always print-preview-app, which does not have an ancestor with a scrollbar even if one exists on the page (e.g. in the settings sections). Examine the event path instead of the target and its ancestors to determine if there is a scrollbar that should receive the arrow key events instead of the plugin. Bug: 872251 Change-Id: I034542d04644e1b47fd1961a9b984a48843b2b40 Reviewed-on: https://chromium-review.googlesource.com/1174995 Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Reviewed-by:Scott Chen <scottchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#583671}
Showing
Please register or sign in to comment