Skip to content

Scroll position on page reload - Latest version (3.5.4) #387

Closed
@eugeniojauregui

Description

I'm using the latest versión on a site who have body scroll and div scroll.
When a load the page both scrollbars appears in the correct position, but if I scroll the body a refresh the page, the div scroll shows in wrong position.
I try with the .resize() function but nothing happens:
$("body, .data-container").niceScroll({zindex: 9999, autohidemode: false });
$("body, .data-container").getNiceScroll().resize();
I'm using Chrome.
At last, I change the versión of nicescroll.js to 3.5.0, and works great.

First load
screen-nicescroll01

Page refresh at bottom
screen-nicescroll02

Thanks for the great job and the great plugin!

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions