1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Eliminate the delay for tab drop-downs

Discussion in 'XenForo Questions and Support' started by jauburn, Dec 24, 2013.

  1. jauburn

    jauburn Well-Known Member

    By default, one has to allow the mouse cursor to hover over a tab in order to activate the drop-down associated with it. Most users don't do that. If they don't see a submenu immediately, they don't bother waiting.

    How can I eliminate the delay associated with a tab's drop-down?

    Thanks.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. jauburn

    jauburn Well-Known Member

  4. jauburn

    jauburn Well-Known Member

    I changed it to 0. The menus still don't seem instantaneous. It's odd. It's as if you have to situate the mouse cursor exactly over the down arrow to get a reaction.
     
  5. jauburn

    jauburn Well-Known Member

    Yeah, the arrow is what activates the drop-down. Would be better if you could just put the mouse anywhere on the menu to activate the drop-down.
     
  6. Tracy Perry

    Tracy Perry Well-Known Member

    jauburn likes this.
  7. jauburn

    jauburn Well-Known Member

  8. jauburn

    jauburn Well-Known Member

    Trouble is...that didn't work.
     
  9. Tracy Perry

    Tracy Perry Well-Known Member

    It should.... I use it one one of my modified default styles (http://twowheeldemon.com and the "Default Style"

    I enabled debug and created 3 template modifications

    This one is for the members (made an entry specific for it)

    Search for (in navigation template)

    Code:
    <a href="{$tabs.members.href}" class="navLink">{$tabs.members.title}</a>
    
                    <a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
    Replace with
    Code:
    <a href="{$tabs.members.href}" class="navLink NoPopupGadget" rel="Menu">{$tabs.members.title}</a>
    This one is for the forum

    Same template - new entry

    Search for

    Code:
    <li class="navTab forums {xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}">
             
                    <a href="{$tabs.forums.href}" class="navLink">{$tabs.forums.title}</a>
                    <a href="{$tabs.forums.href}" class="SplitCtrl" rel="Menu"></a>
    Replace with

    Code:
    <li class="navTab forums {xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}">
             
                    <a href="{$tabs.forums.href}" class="navLink NoPopupGadget" rel="Menu">{$tabs.forums.title}</a>
    And a third one

    Search For

    Code:
    <a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
    Replace with

    Code:
    <a href="{$extraTab.href}" class="navLink NoPopupGadget" rel="Menu">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
     
    jauburn likes this.
  10. jauburn

    jauburn Well-Known Member

    Thanks. I'll try it.

    How do you get rid of the "java no-goodness" (i.e., delay) on the right-hand side, as well? User menu and all that?
     
  11. jauburn

    jauburn Well-Known Member

    It's like with Windows...the first thing I do on a new installation is get rid of all of the "animation" silliness, which is fun for about 30 seconds--and afterwards, just annoying.
     
  12. Tracy Perry

    Tracy Perry Well-Known Member

    I'm pretty sure it's controlled by the same javascript delay that @Brogan outlined in his post. The problem with editing the .js is each time you do an upgrade you have to perform the edits again. I just finally gave up and lived with the delay.
     
  13. jauburn

    jauburn Well-Known Member

    Yeah. I am sure i will, too. I do not understand why these delays are built in to the system, though. My user testing over the years has shown that people invariably want menus to respond instantly. After all, they access them in order to get something done, not because they like the visual effects.
     
  14. Tracy Perry

    Tracy Perry Well-Known Member

    One reason is when you mouse over them they won't immediately be popping up as you pass over them (say when moving from Members to Forum). The delay prevents that unless you hover over it. I kinda like it as you don't see the drop downs flashing by.
     

Share This Page