[filesapp] Add global pointer-active handler
If the mouse/pointer/touch device is Pressed, adds a class to the root HTML element (and remove it when the device is released), to allow you to write CSS to prevent hover effects on inactive elements: html.pointer-active some-clickable-element:not(:active):hover { background-color: unset; } Bug: 1062902 Change-Id: I6bafc00b608f69ea35d61a8a9e77f22fb597a56a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2111810Reviewed-by:Alex Danilo <adanilo@chromium.org> Reviewed-by:
Luciano Pacheco <lucmult@chromium.org> Reviewed-by:
Noel Gordon <noel@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#751889}
Showing
Please register or sign in to comment