glidejs / glide

A dependency-free JavaScript ES6 slider and carousel. It’s lightweight, flexible and fast. Designed to slide. No less, no more
https://glidejs.com
MIT License
7.29k stars 772 forks source link

Fix Direction.resolve for rtl #678

Open layalk opened 10 months ago

layalk commented 10 months ago

Currently the Direction.resolve function fails for glide-data-dir="|>" and glide-data-dir="|<". This fix replaces the < and > in the pattern regardless it's position in the pattern string.

hseager commented 8 months ago

This would be a great addition to get merged. I've used patch-package until this gets merged and it appears to be working as expected in Arabic and Hebrew. Thanks for the fix