Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. function setupScrollbars() {
  2. var myScroll = new Array();
  3. $('.iscroll_wrap').each(function(){
  4. var h1 = $(this).parent().height();
  5. var h2 = $(this).find(".scroller").height();
  6. if (h1 < h2){
  7. id = $(this).attr('id');
  8. myScroll.push(new iScroll(id,{
  9. snap: false,
  10. momentum: true,
  11. hScrollbar: false,
  12. vScrollbar: true,
  13. hScroll: false,
  14. vScroll: true,
  15. useTransition: true,
  16. mouseWheel: true,
  17. click: true,
  18. bounce:false
  19. } else if (h1 >= h2){
  20.  
  21. }
  22. });
  23.  
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement