[RC1] click menu instead of hover menu = no home link
July 03, 2014, 11:24:46 am
If a user choose to use a click menu instead of hover menu, there's no link to the forum index named "community". Would be better if there is one.
Re: [RC1] click menu instead of hover menu = no home link
Reply #1 – July 03, 2014, 01:03:43 pm
I noticed that as well several weeks ago and thought it functioned that way by design. In order to see the menu under Community you would need to click it ( if click is enabled ), thus no way to do the linky thing when the hover option is used. Perhaps put a 'Home' button on the menu bar when click is selected or place it on the Community drop down menu along with the other options?
Re: [RC1] click menu instead of hover menu = no home link
Reply #3 – July 04, 2014, 09:03:05 am
We could add those links in the dropdown when using click to navigate ... so add community as an option when the dropdown appears only for click menus (could also give a different name like home, index, forum, main ??) ... Its the same thing with the profile button which normally links to summary, but with click you have to select another option and then navigate back. So for a click menu we could add in summary as one of the dropdown options ...
Re: [RC1] click menu instead of hover menu = no home link
Reply #5 – July 04, 2014, 09:14:49 am
Hummm Yes it will (or should) "auto" swap for small screens, or at least devices that browser detect says is mobile, Not sure it would do it if your using a responsive design view though.
Re: [RC1] click menu instead of hover menu = no home link
Reply #8 – July 06, 2014, 09:24:14 am
emanuele
Global Moderator
I was thinking about the second click (just because it's the way xenforo deals with it), though I find it a bit annoying. It should be enough to "tweak" a preventDefault somewhere I think.
Re: [RC1] click menu instead of hover menu = no home link
Reply #11 – July 13, 2014, 08:10:54 am
LOL ... thats because it was a shameless cry for help ! Background: The menu system in ElkArte can use either hover dropdowns or click dropdowns. For that we use either superfish or superclick instead of plain css ... this to provide some a11y features. Anyway on the top menu, items like Admin & Community, are also navigation links. So if you click those top menu items it is a standard navigation link, hover instead you get the dropdown. Now when you instead use click dropdowns, that navigation click is intercepted and the dropdown created on the click and there was no way to activate/follow the top navigation link. So to work around this issue I added a dblclick option on those menus, so a single click on Admin shows the dropdown, but a double click on Admin navigates to the admin section. The issue then is what I posted about, when you doubleclick the single click event still fires so you may get the single click activity, which in this case is the menu to appears or starts to appear even though its a double click event. ... I could not find a way to prevent that other than adding a delay function on the single click to wait and see if another click arrives in some short period of time and if not fall through. That kind of worked but you are guessing at whats a good double click time and during that wait the system is ... well waiting (50ms 100ms 200ms) ... so no sure that "solution" was better than the problem.
Re: [RC1] click menu instead of hover menu = no home link
Reply #14 – December 06, 2014, 09:28:41 am
So that would replace the dblclick workaround that is in place now or supplements it? If it works better I'm all for it. What we have now has the issue I described, you can double click on home, admin, profile etc and be taken there, but the dropdown menu will appear for the instance between clicks. The only way I could work around that was with a delay and I did not want to do that. So where would the code above go?