Scroll bar – can it appear at all times instead of dissapear?

Support Forums for LiveMesh Themes & Plugins Forums Appdev Theme Support Scroll bar – can it appear at all times instead of dissapear?

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3035
    Elleeyeelleeye
    Member

    Greetings,

    Our client would like to know if there’s a way for the scroll bar on the side of the website to stay “at all times” instead of going away. It appears suddenly when the mouse is moved, but then goes away.

    Is this a theme functionality issue or browser difference issue do you think?

    Thank you.

    #3052
    NexusNexus
    Moderator

    Hi,

    It is a feature of he nicescroll plugin that we have used. But you can make the scrollbar always visible by changing the main.js file in the (theme/js) folder line 449. Please replace the existing code (from line 449 to 463) with the below code

     if (!mo_options.disable_smooth_scroll) {
            $("html").niceScroll({
                zindex: 99999,
                boxzoom:true,
                touchbehavior:false,
                scrollspeed: 60,
                mousescrollstep: 40,
                smoothscroll: true,
                cursorborder: "1px solid #424242",
                autohidemode: false,
                horizrailenabled: false
    
            });
          $('#ascrail2000').show();
        }
    
        /* ---------------------------------- Drop-down Menu.-------------------------- */

    Thanks!

    #3079
    Elleeyeelleeye
    Member

    Thank you, we will try this!

    #3085
    Elleeyeelleeye
    Member

    Can you give me a search FOR and replace WITH instead of just REPLACE WITH?

    I want to make sure the lines are the same – they look a little different and I don’t want to mess up the site. I just want to find, cut and paste. Do you know what I mean?

    Thank you.

    #3090
    RaghavendraRaghavendra
    Moderator

    I changed the file on your server. You need to replace

    if (!mo_options.disable_smooth_scroll) {
            $("html").niceScroll({
                zindex: 99999,
                boxzoom:true,
                touchbehavior:false,
                scrollspeed: 60,
                mousescrollstep: 40,
                smoothscroll: true,
                cursorborder: "1px solid #424242",
                horizrailenabled: false
    
            });
        }
    

    with

    if (!mo_options.disable_smooth_scroll) {
            $("html").niceScroll({
                zindex: 99999,
                boxzoom:true,
                touchbehavior:false,
                scrollspeed: 60,
                mousescrollstep: 40,
                smoothscroll: true,
                cursorborder: "1px solid #424242",
                autohidemode: false,
                horizrailenabled: false
    
            });
          $('#ascrail2000').show();
        }
    
    #3118
    Elleeyeelleeye
    Member

    Thank you so much!!! Looks great.

    Will we have to do something special to remember that this code has been changed when we update the theme in future releases?

    #3135
    NexusNexus
    Moderator

    Yeah. You will have to keep a backup of this code and reapply it when you update the theme in future.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Scroll bar – can it appear at all times instead of dissapear?’ is closed to new replies.