I
I
Ilya Popov2015-08-24 15:43:07
JavaScript
Ilya Popov, 2015-08-24 15:43:07

How to redirect the scroll of a child element to the parent?

In general, the essence of the problem is this, there is a parent element in which there are 20 children. On mobile devices (on webkit)
if you try to scroll with your finger, it scrolls the parent (which is what I need), but if your finger leaves the element where the scroll started (for example, a block with text), then the scroll ends. (on the desktop in the browser everything is fine).

If you monitor the touchmove -> event.target.className event, the child element is allocated accordingly.

I would be very grateful if you tell me how to solve this situation.

p073joN.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Popov, 2015-08-25
@Seyritey

In this situation, it turned out that swipe (left right) from the jquery mobile library created this twitching, the reason is not clear, but replacing it with a native analogue, everything was decided.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question