cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.88k stars 3.81k forks source link

Join iscroll-zoom and iscroll-infinite #899

Open ivan-petrunko opened 9 years ago

ivan-petrunko commented 9 years ago

Hi. I want to use iscroll-zoom and iscroll-infinite instances on single page. Now I load two scripts consequentially. But the second script overwrites IScroll class and I cannot use zoom functionality after loading infinite scroll script. Do you have any solution? How can I merge two scripts into single providing both zoom and infinite scroll functionality?

dt1973 commented 9 years ago

Woud be awesome if these features were just additional modules you could hook and unhook from the main iScroll. Maybe a feature for iScroll 6?

fadomire commented 9 years ago

i had the same need, you can look at that fork to see how i did

https://github.com/fadomire/iscroll/commit/7f2a40f0ce4f57fb422c4f2d1dfe1187167702d5

i just edited build.js to add a custom build with what i needed (zoom and infinite) and patched refresh.js