Open paramsinghvc opened 5 years ago
I tried your codesandbox demo - the panning (dragging the section up/down) seems to work ok with overflow-y: scroll
on the <section>Hola Mundo</section>
element - Chrome Version 79 Windows 10
It starts to slows down a lot after dragging up and down a few times, but maybe that's probably implementation specific (or just that it's slow running within the sandbox setup)
CodeSandbox Link: https://codesandbox.io/embed/hammerjsdraggeroverflowybug-wqhoe
Pan gestures are working well when there's no overflowY CSS property applied on the DOM element. But as soon as I set overflowY property to anything other than
initial
, it breaks the gestures.Also, a very bizarre thing happens, the value of deltaY and deltaX increases abruptly in the end, can't find the reason for this. But if I remove overflowY property from the elements, it fixes. Reproducible in CodeSandbox, open in mobile mode only using devtools.
Please suggest a solution to this problem. Are
overflowY
and touch gestures incompatible with each other? Couldn't find any reference.