Monday, 26 August 2013
Fancybox v2 how do I prevent background scroll in chrome?
Fancybox v2 how do I prevent background scroll in chrome? References I am using fancybox version 2.1.4, and in chrome it is allowing scrolling of the main page when the fancybox is open. I am utilizing the \"locked:true\" but that doesn\'t seem to solve the issue. I have also considered using e.preventDefault to disable certain scrolling abilities as another option: $(document).ready(function() { $(\'.fancybox\').fancybox({ \'closeClick\' : false, \'scrolling\' : \'no\', helpers : { overlay : { closeClick: false, locked:true} }, beforeShow: function(){ //considering some type of functionality here to prevent default of mousewheel }, afterClose: function(){ //restore default action of mousewheel, although my initial attempts at this did not work } }); });
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment