Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using the current version of this module, and even though I have deselected "BACK TO TOP" display label in the settings, it keeps showing up anytime I view photos on my site using the current version of Lightbox 2 module, and it also moves from the right to the left though I have opted that it should be at the right.
"BACK TO TOP" keeps printing per the number of clicks on a photo as displayed in the Lightbox 2.
Comment | File | Size | Author |
---|---|---|---|
#6 | scroll_to_top.css_.patch | 356 bytes | tarekdj |
#3 | scroll_to_top.js_.patch | 599 bytes | tarekdj |
Comments
Comment #1
tarekdj CreditAttribution: tarekdj commentedHi nocks,
Can you give me more details on your lightbox settings. I've tried to reproduce the bug but
it works for me and there is no problems.
Comment #2
relaxy CreditAttribution: relaxy commentedI've experienced the same problem.
Another "Scroll to Top" button with a description appears in any case on the left side, if a picture is shown inside of the Colorbox. ImageCache module is also enabled.
Comment #3
tarekdj CreditAttribution: tarekdj commented@nocks & @relaxy
found that the script is reexecuted each ajax call. Patch attached fixes this problem
hope that it works for colorbox and lightbox too. need tests!
Comment #4
nickspages CreditAttribution: nickspages commentedWorks like a charm with colorbox! Thanks for the patch! www.mbfindustries.com
Comment #5
nickspages CreditAttribution: nickspages commentedScratch that... the patch worked fine until I noticed that it gets stuck on the up position after you open and close Colorbox. Then the button starts flashing. I was soo close!
Comment #6
tarekdj CreditAttribution: tarekdj commentedI noticed that both colorbox overlay and "back to top" button have the same z-index. The patch attached decreases the z-index of "back to top".
Hope that this fixes the problem.
(In all cases "back to top" button's z-index must be less than colorbox overlay's one).
Comment #7
nickspages CreditAttribution: nickspages commentedHello,
The z index was different. I had it working perfectly. When the colorbox was open the "Scoll to top" was under the #cboxOverlay because I changed the z index.
The problem is after I close colorbox and push the "Scoll to top" button to get to the top. I get to the top successfully but then I have to wait about 3 seconds to start scrolling down again. If I try to scroll down within 3 seconds the page starts vibrating and then the "Scroll to top" button starts flashing about 3 or 4 times. However, if I go to a page without opening and closing Colorbox it works great. I can scroll up and down quickly without waiting 3 seconds on the top position.
Comment #8
Jibus CreditAttribution: Jibus commented#3 - Is this patch working for the 7x version ? I think yes, but i prefere asking in any case...
Comment #9
tarekdj CreditAttribution: tarekdj commentedHi Jibus,
Here is the patch for 7.x: http://drupal.org/node/1556608#comment-5964828
Comment #10
bserem CreditAttribution: bserem commentedMonths later: the patch for D6 works for me for colorbox, thank you!
I believe it could patched to the next release
Comment #11
bserem CreditAttribution: bserem commentedI would like to add that under some circumstances the button kept appearing twice. So I edited it with some css:
it worked in my case, hope it helps.
Comment #12
tarekdj CreditAttribution: tarekdj commentedpatch commited to dev release