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.

CommentFileSizeAuthor
#6 scroll_to_top.css_.patch356 bytestarekdj
#3 scroll_to_top.js_.patch599 bytestarekdj
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tarekdj’s picture

Status: Active » Postponed (maintainer needs more info)

Hi 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.

relaxy’s picture

I'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.

tarekdj’s picture

Version: 6.x-2.0-beta1 » 6.x-2.x-dev
Status: Postponed (maintainer needs more info) » Needs review
FileSize
599 bytes

@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!

nickspages’s picture

Works like a charm with colorbox! Thanks for the patch! www.mbfindustries.com

nickspages’s picture

Scratch 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!

tarekdj’s picture

FileSize
356 bytes

I 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).

nickspages’s picture

Hello,
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.

Jibus’s picture

#3 - Is this patch working for the 7x version ? I think yes, but i prefere asking in any case...

tarekdj’s picture

Hi Jibus,
Here is the patch for 7.x: http://drupal.org/node/1556608#comment-5964828

bserem’s picture

Months later: the patch for D6 works for me for colorbox, thank you!
I believe it could patched to the next release

bserem’s picture

I would like to add that under some circumstances the button kept appearing twice. So I edited it with some css:

#back-top {
  display: none;
}
#back-top:first {
  display: block;
}

it worked in my case, hope it helps.

tarekdj’s picture

Status: Needs review » Fixed

patch commited to dev release

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.