3 ms·
The solution I've used requires Javascript. It detects when on a touch screen, and if so, adds a CSS class to one default item that gives it the same display-c
by gojomo 16y ago
The solution I've used requires Javascript.
It detects when on a touch screen, and if so, adds a CSS class to one default item that gives it the same display-characteristics (including showing hidden controls and shading) as if it were being moused-over.
Then, set it so any touch on other eligible elements moves this 'current' class.
In some ways, this could be a clearer model for pointer environments, too: reveal the hidden controls on at least one element at the start, and adjust the one full-revealed item as the pointer moves. This requires Javascript, and is a bit more cluttered, but won't leave anyone in the dark about what's possible.