-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override hover styles when there are touch events.
When the user touches the demo controls (e.g. on a phone), the controls will get the :hover pseudo-class. However, this style doesn't get removed until the user "clicks" somewhere else. This causes the controls to remain visible forever. When we are getting touch events, we should override the :hover style and hide the controls. However, we should only do this so long as the clicks are from touch events. For touchscreen laptops (that have both touch events and a mouse), we should still allow hovering over the controls if they used the mouse. Closes #663 Change-Id: I2705aa8fa9e59657b6fe3603c1826125ccce950a
- Loading branch information
1 parent
db2b0d1
commit a026f52
Showing
1 changed file
with
29 additions
and
6 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