CodeWalrus

CodeWalrus Website => Site Discussion => Site Discussion & Bug Reports => Topic started by: aetios on February 08, 2016, 10:14:56 AM

Title: About the buttons on the navbar...
Post by: aetios on February 08, 2016, 10:14:56 AM
..yes, the [Home] [Forum][IRC][Downloads][About], etc buttons. Why are most of them not clickable and only spawn a drop-down menu? What I'd like is that they lead to a default option, e.g. the top option, or one that many users use a lot. Saves a lot of precise mousing :)
Title: Re: About the buttons on the navbar...
Post by: novenary on February 08, 2016, 10:16:36 AM
Because otherwise the menus are unusable on the mobile site. This isn't gonna change until css4 or someone points me to a solution in js. :P
Title: Re: About the buttons on the navbar...
Post by: aetios on February 08, 2016, 10:17:25 AM
Oh wow. Can't you make this option desktop only or so?
Title: Re: About the buttons on the navbar...
Post by: novenary on February 08, 2016, 10:18:37 AM
By "solution in js" I meant a way to detect touch screens. I don't want to tie that to the window size, it would be inconsistent.
Title: Re: About the buttons on the navbar...
Post by: aetios on February 08, 2016, 10:20:10 AM
I see. Is it an option to detect the browser the user uses as a crude detection method? I think they all identify as a mobile browser.
Title: Re: About the buttons on the navbar...
Post by: novenary on February 08, 2016, 10:20:47 AM
God please no, I don't wanna touch the php code.

@Juju, if you wanna take a look the ideal solution would be to undo this with js:
#menu_nav > li > a
{
        pointer-events: none;
}

Then add a touch event handler that does a preventDefault. This way it remains functional for those who have js off and it also works nicer for those who do have it on. Take a look at the CSS to see which ones should be whitelisted.
Title: Re: About the buttons on the navbar...
Post by: c4ooo on February 08, 2016, 11:56:22 AM
Half these buttons dont do sh** on iOS >_>
But suprisigly only on theme=3 and not 1.