Overflow Scrollfollow
I have a div that I have set to overflow auto and when I try to use the autoscroll it will only scroll if the body scrolls but I can't get it to work if the "master_container" scrolls
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Nevermind I figured it out. I had to modify the jquery.scrollFollow.js. I modified
From
var pageScroll = $( document ).offset().top;
To
var pageScroll = $( "#master_container" ).offset().top;
AND
From
$( document ).scroll( function ()
{
ani( box, initialTop );
}
);
To
$( "#master_container" ).scroll( function ()
{
ani( box, initialTop );
}
);
#master_container being the id of the div that scrolls.
Now if you want the object to scroll when the body scrolls also you would probably have to keep both sets of code. This is just a guess and is untested.
I’m happy
Loading Profile...


