pklauzinski / jscroll

An infinite scrolling plugin for jQuery.
http://jscroll.com/
1.11k stars 563 forks source link

more than one scroll on a page #54

Open yairpe opened 9 years ago

yairpe commented 9 years ago

I'm trying to have two jscroll on a single page.

One is on the regular posts page The other is in sidebar (UIKit off-canvas)

After opening the sidebar and binding jscroll to its div, closing the sidebar, the scrolling in the main page is with the sidebar.

Is there any way to push/pop the jscroll functionality?

Thanks

Yair

borayeris commented 9 years ago

I have the same question. Only one column works. Is it a bug or am I doing something wrong?

borayeris commented 9 years ago

Hi Yair,

I think I found a solution. https://github.com/borayeris/jscroll I modified jquery.jscroll.js. Please test it. Do not use jquery.jscroll.min.js. Use jquery.jscroll.js.

yairpe commented 9 years ago

Thanks. I'll take a look at it.

pklauzinski commented 9 years ago

@borayeris - Please submit a pull request for your changes if you think they fix the issue, and we can add it to the main repo. Also, make sure you run grunt in your dev environment so that the minified file is created.

yairpe commented 9 years ago

borayeris, Maybe i'm doing something wrong but it keep loading all pages one after the other in the sidebar

I've implemented a simple '--More--' button myself for the inner scrolling.

Right now I'm fighting jscroll not to trigger if there is only one page and no nextSelector found....

borayeris commented 9 years ago

yairpe,

Do u have it online?

yairpe commented 9 years ago

see topishare.com test account: test@topishare.com / test The first jscroll is the posts in a topic page The second one I thought to use it is the internal mail (envelope icon at the header) but implemented a simple 'More' myself

kevzlou7979 commented 8 years ago

Any updates on this?

lucia33 commented 8 years ago

@borayeris thanks your solution works