Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky hover style on touchscreens #418

Open
sheenobu opened this issue Jul 27, 2019 · 2 comments
Open

Sticky hover style on touchscreens #418

sheenobu opened this issue Jul 27, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@sheenobu
Copy link
Contributor

sheenobu commented Jul 27, 2019

This is related to #60 but it's actually sort of a touchscreen bug and persistent (until you manually hover/unhover via a mouse)

https://blog.usejournal.com/finally-a-css-only-solution-to-hover-on-touchscreens-c498af39c31c

The problem arises when the user interacts with this element on a touchscreen: after the tap has been done, the hover effect is stuck on the element. This also occurs when the element is not even activated by the tapping, for instance if it was touched during scrolling.

I've tried disabling the hover via the guidance in #60 but it doesn't get any better. screenshot attached is using the standard style.css. Additionally, that pointer: fine suggestion is not supported on GTK CSS.

2384c82c-b036-11e9-97d6-2816a867928b

EDIT:

oops, looks like

#workspaces button:hover {                                                      
    background: transparent;                                                    
    box-shadow: inherit;                                                        
    border-bottom: 3px solid transparent;                                       
}  

does work!

@Alexays Alexays added the bug Something isn't working label Jul 29, 2019
@Alexays
Copy link
Owner

Alexays commented Jul 29, 2019

Yeah your css will fix the issue, but with that the hover effect is gone even with a mouse

@anonymous-user
Copy link

I am having the same issue on my XPS 13 also with a touchscreen. However I tried your code and it did not work 100%. I have set a custom background color for the current workspace and the hover effect remains there. Furthermore I noticed that hovering over non-active workspaces still shows a border effect on the button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants