Fix slider swipe behaviour

This commit is contained in:
Paul Nicoué 2022-11-25 15:42:36 +01:00
parent f7962b4ec4
commit 4cef2950f6
2 changed files with 3 additions and 3 deletions

View file

@ -79,9 +79,9 @@ function changeSlideOnClick() {
function changeSlideOnSwipe() { function changeSlideOnSwipe() {
if (homeSection && slider) { if (homeSection && slider) {
homeSection.addEventListener('swiped', function(e) { homeSection.addEventListener('swiped', function(e) {
if (e.detail.dir === 'right') { if (e.detail.dir === 'left') {
slider.go('>'); slider.go('>');
} else if (e.detail.dir === 'left') { } else if (e.detail.dir === 'right') {
slider.go('<'); slider.go('<');
} }
}); });

File diff suppressed because one or more lines are too long