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() {
|
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
Loading…
Add table
Add a link
Reference in a new issue