glightbox icon indicating copy to clipboard operation
glightbox copied to clipboard

feat: Support for ordering images right to left

Open DenverCoder1 opened this issue 2 years ago • 4 comments

Resolves #459

This adds support for the direction option in Glightbox which allows the images to flow from right to left instead of left to right to make it more natural for rtl language interfaces (such as Arabic and Hebrew).

const lightbox = GLightbox({ direction: 'rtl' });

When the direction is set to rtl, pressing the left arrow key, left lightbox button, or swiping right will advance to the next image and pressing the right arrow key, right lightbox button, or swiping left will go to the previous image. The slide and slideBack CSS effects are also reversed.

DenverCoder1 avatar Dec 20 '23 15:12 DenverCoder1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 21 '25 22:01 stale[bot]

@gingerchew @biati-digital Sorry to bother, is this enhancement still being considered?

DenverCoder1 avatar Jan 23 '25 17:01 DenverCoder1

Hey there @DenverCoder1, as far as I know RTL support is still on the way, but I don't think it will be in v3 as we are in a feature freeze to get ready for v4. Stalebot is a little aggressive and possibly using an unhelpful label.

gingerchew avatar Jan 23 '25 18:01 gingerchew