Fix slider swipe behaviour
This commit is contained in:
parent
f7962b4ec4
commit
4cef2950f6
2 changed files with 3 additions and 3 deletions
|
@ -79,9 +79,9 @@ function changeSlideOnClick() {
|
|||
function changeSlideOnSwipe() {
|
||||
if (homeSection && slider) {
|
||||
homeSection.addEventListener('swiped', function(e) {
|
||||
if (e.detail.dir === 'right') {
|
||||
if (e.detail.dir === 'left') {
|
||||
slider.go('>');
|
||||
} else if (e.detail.dir === 'left') {
|
||||
} else if (e.detail.dir === 'right') {
|
||||
slider.go('<');
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue