• I’ve noticed that the arrows seem to be going in the wrong direction.
    When I have several lightboxes on one page, and I click on the right arrow, I would think to should go to the next image, but it does in fact go to the previous one. And if I click left it goes to the next one.

    I don’t know if this is intended, or if it’s an error.
    I if it intended it would be great with an option on the settings page to select which way it should go.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Up for this. Thanks!

    Yes, I can confirm this misbehavior.

    for the buttons i have a quick fix:

    change line:5356 in file "simple-lightbox.legacy.min.js?ver=2.10.0" to this:
    
    return !e.currentTarget.tagName.match(/button/i) || (e.preventDefault(), r.controlCoordinates.swipeDiff = 0, void r.loadImage(e.currentTarget.classList.contains('sl-next') ? - 1 : 1))

    but swiping is not fixed!

    Plugin Author aknieriem

    (@aknieriem)

    Alright I will take a look.

    Plugin Author aknieriem

    (@aknieriem)

    Sorry I cannot reproduce it. Do you have a link where I can see this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Arrows going in the wrong direction?’ is closed to new replies.