Closed g7alt closed 3 years ago
Thanks for the feedback. Here is a good summary I guess https://developers.google.com/web/updates/2017/01/scrolling-intervention.
Hi @narasab , default behavior should be prevented otherwise page scrolling will coexist with Swiper slide action. Or we have to tackle this problem with different method.
This video shows the concern as mentioned above.
checkout this example packages/tiny-swiper/demo/vertical.html
Yes I see your point. Is there a reason for not using css scroll snap with intersection observer?
css scroll snap with intersection observer
@narasab That‘s a great idea! You mean create slide effect with scroll snap property sets just like this right?
But what I'm concerned is
Do you have a plan?
Yes like that one, and use intersection observer to emit the index. But you're right that has to wait for sometime if IE is a concern.
But we still can fix the touchmove errors, right? Just make sure that e.cancelable is not false
@narasab, I'm looking forward your PR
if(state.isTouching && e.cancelable !== false)
Yes you're right. Checked with the web view and all seems ok.
fixed errors -> [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false'