A thing that would be great to implement is both the plugins, is a way
to keep track of the scrollTop value when leaving a page, so that when
you click "Back" on the browser, the page is displayed again at the
same scrollTop position.
Have you ever thought about that?
On 8 déc, 12:25, "Kelvin Luck" <kel...@kelvinluck.com> wrote:
> This is an very interesting approach and has a few advantages over
> jScrollPane. One case that it deals with which I'm not sure how to deal
> with for jScrollPane is when you use the browsers inbuilt "find on page"
> command. Your code is also much simplified as you don't need to write
> custom code for keyboard navigation, mouse wheel etc.
> The main limitation with your approach is that you can't have a
> transparent scrollbar which allows the page background to show through.
> You also still need to implement the "click on track" and arrow buttons
> (as you note on the page).
> Re. jScrollPane wrapping the content, there is actually a patch that I
> have been meaning to apply which (optionally) avoids this issue. Re. the
> timer, I have been trying not to add this to jScrollPane. It is obviously
> simple enough to do but I think it is better for people to program using
> the event based architecture of JS rather than having a constantly polling
> component. That said, lots of things are simplified with a timer and I
> might need to drop my philosophical opposition to it from a purely
> practical angle...
> Anyway - good work, nice bit of lateral thinking to come up with the
> different approach,
> Kelvin :)
I haven't thought of tracking the scrollTop when you leave the page. I
guess the only way to do it would be using a cookie to store the
information. I'm not sure if it would be desired behaviour though - do the
browser's default scrollbars behave like this?
On 18 déc, 12:47, "Kelvin Luck" <kel...@kelvinluck.com> wrote:
> Hi Henri,
> I haven't thought of tracking the scrollTop when you leave the page. I
> guess the only way to do it would be using a cookie to store the
> information. I'm not sure if it would be desired behaviour though - do the
> browser's default scrollbars behave like this?
> Kelvin :)