Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setupScrollbars() {
- var myScroll = new Array();
- $('.iscroll_wrap').each(function(){
- var h1 = $(this).parent().height();
- var h2 = $(this).find(".scroller").height();
- if (h1 < h2){
- id = $(this).attr('id');
- myScroll.push(new iScroll(id,{
- snap: false,
- momentum: true,
- hScrollbar: false,
- vScrollbar: true,
- hScroll: false,
- vScroll: true,
- useTransition: true,
- mouseWheel: true,
- click: true,
- bounce:false
- } else if (h1 >= h2){
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement