Direction pattern parsing fails for `perSwipe` setting with integer value
Author: jasaltCreated Apr 3, 2025Updated Apr 3, 2025
Glide.js v3.7.1
While trying perSwipe with integer values I noted following console error:
[Glide warn]: Invalid direction pattern [5>] has been usedLooking at the execution in Firefox debugger, it seems that the direction and steps values got parsed the wrong way at some point...
In my case setting "|" to perSwipe value (to swipe the currently visible amount of slides) led to behavior I wanted however so not diagnosing this further for now.
Possibly related: https://github.com/glidejs/glide/issues/624 https://github.com/glidejs/glide/issues/593 https://github.com/glidejs/glide/issues/548
Source: glidejs/glide