There is no mouseWheel: 'no'

1,031 views
Skip to first unread message

BananaAcid

unread,
Apr 4, 2010, 4:17:50 PM4/4/10
to fancybox
I had one gallery where i wanted to disable the scrolling.... what i
did:

var o =
{
... the other options...

// detatch the mouse-wheel option each time fancybox adds it (after
pic change)
onComplete = function() { $("#fancybox-
wrap").unbind('mousewheel.fb'); }
}

$.fancybox(...url/urlarray... , o);


I hope it might help someone.

Kirill Aristov

unread,
Apr 12, 2010, 1:45:59 PM4/12/10
to fancybox
You can use it in manual call fancybox, for example:

$("a[rel=gallery]").fancybox({
'onComplete' : function() {$("#fancybox-
wrap").unbind('mousewheel.fb');} ,
'hideOnOverlayClick' : true,
'hideOnContentClick' : true,
'transitionIn' : 'fade',
'transitionOut' : 'elastic',
'scrolling' : 'no',
'titleShow' : false,
'showNavArrows' : false,
'padding' : 50
});

Reply all
Reply to author
Forward
0 new messages