Dropdown menu delay for touchscreens.
.submenu {
transition: all 0s ease;
}
li:hover .submenu {
transition-delay: .2s;
}
Выпадающее меню с задержкой для тачскринов. Думаю, всё понятно.
Hint
How to detect a touch device with media queries!
/* smartphones, touchscreens */
@media (hover: none) and (pointer: coarse) {
/* ... */
}
/* mouse, touch pad */
@media (hover: hover) and (pointer: fine) {
/* ... */
}