A
A
Anton2015-11-20 14:26:16
PHP
Anton, 2015-11-20 14:26:16

Menu with submenu levels, problem on phone and tablet how to solve?

Hello, I made a crossbrowser menu on the site, but there is a problem, let's say a list.
Clothes
-t-shirt -pants
-t-
shirt
On a computer or laptop, if you hover the mouse over the CLOTHES section, a list of submenus pops up, T-shirt, pants, t-shirts.
On a phone or tablet, if you hover over the mouse, it doesn’t come out, but if you click on the CLOTHING section, then all the goods from the submenu sections enter it, that is, click on the CLOTHING section, the submenu pops out and immediately enters this section, that is I do not have time to click on the submenu, how to deal with it? please tell me how to do it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GreatRash, 2015-11-20
@GreatRash

Recently I saw a cool template .

V
Valeriy Donika, 2015-11-20
@Valonix

Because there is no hover event on mobile devices. Do a click on the "burger", open the menu on the entire screen of the mobile device, etc.

S
sashabeep, 2015-11-24
@sashabeep

1. Detect a touch
2. Sculpt a click event and some kind of counter for the first click on a link that has a submenu in the parent - instead of switching, show the submenu
3. On the second click, we still follow the link
4. When clicking outside the open submenu, hide menu, reset the counter on the link of the 1st level

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question