Is there a way to add scrolling so that the fancybox can scroll inside iteself when there is more content in the post to fit in, say 600px height?
Thanks in advance. I love this plugin!! Defiant donor.
It depends on what kind of content you are showing in FancyBox.
Try the dev version from http://wordpress.org/extend/plugins/easy-fancybox/developers/ which has a new option for iFrame that allows scrolling.
Inline and PDF content types should already be scrollable by default.
All other media content types (images, video, flash) will always fit exactly inside the FancyBox frame without scolling, whatever options you choose…
I added scrolling with a solution you gave:
<div id=”fancyboxID_1″ style=”width:460px;height:380px;overflow-x:hidden;overflow-y:scroll;”> … </div>
HOWEVER, when I hover over the content the mouse wheel will not scroll content. The only way to scroll is by clicking the bar and dragging. Is there something in the code I can change to fix this so the mouse will will allow it to scroll?
You could try changing the Center on scroll option on your Settings > Media admin page to see if that alters the scroll wheel capture behaviour. Or Maybe install the latest development version and disable the option ‘Include the Mousewheel jQuery extension script to allow gallery browsing by mousewheel action.’
But otherwise, I think you would have to hack the FancyBox jQuery extension script itself…
Anyone find a fix for this? I can’t trackpad/mouse scroll my content either, regardless of ‘center on scroll’ etc. Only way I can get it to scroll is clicking on the content then hitting the down arrow then grabbing the scrollbar while it’s visible before it fades away again (FF/Safari). I’ve tried nested divs with overflow-y:scroll and everything I can think of.
I was able to solve my inability to get vertical scrolling working on a large div of text by renaming the jquery.mousewheel.js and jquery.mousewheel.pack.js files, essentially disabling them.
Just disable the option ‘Include the Mousewheel jQuery extension script to allow gallery browsing by mousewheel action.’
Ah, I see that shows up in the options for Images. I’m solely using the plugin for inline content so I didn’t have that enabled. You might consider having that disabled by default if the user isn’t using the Images option? Just a thought. Thanks!
I’m also having this problem (cannot use mousewheel scrolling in inline content lightbox), and I’ve tried all the solutions in this thread and the related thread, but none of them fixed it. This included deleting .js files, enabling and disabling the mousewheel option under Images (it was already disabled), and others.
Any other solutions?
This is essential for us to use this plug-in.
I have v.1.5.5
Hi tszabo, it might be that another plugin (or your theme) is adding the Mousewheel script to your site too. Can you share a link?
Yes, I do use quite a few plug-ins, and the Headway theme framework.
Link is at [worldwideweb].travelshak[dotcom]/destinations/big-island-hawaii/abc-stores The lightbox link is Package Details under the Beach Package on the right sidebar.
I just noticed that one of my other plug-ins (Headway’s GalleryPlus photo slider) has a mousewheel function (wp-content/plugins/headway-galleryplus/js/jquery.mousewheel.min.js). I don’t see a WP setting for their plug-in related to this.
What’s the solution?
Hi tszabo, could you try Easy FancyBox version 1.5.2? You can download it from http://wordpress.org/plugins/easy-fancybox/developers/ under Other Versions…
I actually was able to delete the other plug-in mousewheel js file on my ftp, and now it works!
I have a separate question now. When I scroll to the bottom of the lightbox, it then automatically scrolls the larger page behind it (and same if scroll to top of lightbox), even if the cursor is still in the lightbox. This is awkward and seems like a bug.
Is there any setting to change this? If not, any plans to fix this soon in a new version?
- The topic ‘Add Scrolling’ is closed to new replies.