Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1301610

    Moonworks
    Participant

    I’m using a tabs area with Visual Composer and am having a problem clicking on one of the tabs.

    For some reason, the screen scrolls when clicking on a tab and when scrolling back up using the mouse wheel, it isn’t smooth, but almost as if it is fighting against scrolling back to view the tabs at the top.

    How can I arrange it so that clicking on a tab just changes the tab that is shown, with no scrolling?

    This is an example of what is happening:
    http://authorpa.com/product/book-image-002

    #1301754

    Christian
    Moderator

    Hey there,

    Please update X, Cornerstone and VC and check if the issue persists.

    Thanks.

    #1302151

    Moonworks
    Participant

    Thanks for the reply.

    I’ve updated everything, but that is still happening.

    #1302487

    Paul R
    Moderator

    Hi,

    To fix it, you can add this under Custom > Edit Global Javascript in the Customizer.

    
    jQuery( function($) {
    
    $(document).on('click', 'li.vc_tta-tab a,li.vc_tta-tab,.vc_tta-panel-title', function(){
       $('html, body').stop();
    });
    
    });
    

    Hope that helps.

    #1302607

    Moonworks
    Participant

    Thank you. That’s fixed the problem 🙂

    #1302641

    Paul R
    Moderator

    You’re welcome! 🙂