zsk-poznan / zastepstwa

Web app for displaying substitute teachers
GNU General Public License v3.0
8 stars 3 forks source link

Cursor position & hover #23

Closed pniedzwiedzinski closed 4 years ago

pniedzwiedzinski commented 4 years ago

On a touchscreen, as I click on the button the cursor stays where the button was. There is a problem when, in the next view, in this position is an element with :hover - it will be automatically triggered since there is a cursor. So we shouldn't use the hover pseudo-class.

pniedzwiedzinski commented 4 years ago

https://css-tricks.com/touch-devices-not-judged-size/

Problem is that Raspbian runs as desktop system - with mouse and keyboard. So there's no option of recognizing by that. So, again, we need to remove all the :hover in order to keep the UI clear.

pniedzwiedzinski commented 4 years ago

https://codepen.io/andresgalante/full/bBEJKg - a simple test of my theory

pniedzwiedzinski commented 4 years ago

As in #42, I removed all hover pseudoclasses