fancyBox v2: How do I prevent background scrolling in Chrome?
问题 I'm using fancyBox v2.1.4. In Chrome it's allowing scrolling of the main page when the fancyBox is open. I'm 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