S
S
SuperToster2017-12-19 19:53:37
css
SuperToster, 2017-12-19 19:53:37

Owl Carousel 2, touchmove, how to implement correctly?

Hey! With coming! : )

The mobile version of the Yandex main page has a lot of horizontal scroll content, such as "Zen" cards.

I tried to upload something similar to my page. I chose Owl Carousel 2, connected it (like this: https://jsfiddle.net/0z0okbop/ ).

At first glance, everything is not bad, but there were difficulties with the touch move. If you touch the screen, the cards scroll left and right, the page itself up and down, and all this at the same time.

How it works for Yandex:

Touch the screen and swipe left and right. Cards begin to scroll left and right. If you move your finger up and down without lifting your finger, it will not work, only a horizontal scroll.

5a39428055307208600551.jpeg
Similarly, if you touch the screen and start moving up and down, without lifting your finger, you will not be able to move the cards left and right.

5a3942753b427552159963.jpeg
Is it possible to achieve similar behavior from Owl Carousel 2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Raevskiy, 2019-04-22
@ilya_raevskiy

Were you able to implement it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question