goncy / react-swipy

A simple Tinder-like swipeable React component
MIT License
27 stars 19 forks source link

Swiping on Mobile creates a vertical scroll on the whole page #2

Closed sharad-s closed 5 years ago

sharad-s commented 5 years ago

When implementing React-Swipy on mobile, the swipe will allow the user to drag the entire page up and down with their swipe. Is there a way to circumvent this?

sharad-s commented 5 years ago

This issue can be replicated by opening the codesandbox link on mobile:

https://5x53pnrn3x.codesandbox.io/

goncy commented 5 years ago

Hi @sharad-s i think this is not library related, you could lock this behaviour disabling the overflows on the container or removing it's pointer events i guess

sharad-s commented 5 years ago

Hi goncy, were you able to replicate this in the code sandbox on mobile? The link I provided is the link to the demo of your own example on Codesandbox.

If possible could you try to replicate this issue in your sandbox On mobile?

On Thu, May 23, 2019 at 18:40 Gonzalo Pozzo notifications@github.com wrote:

Closed #2 https://github.com/goncy/react-swipy/issues/2.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/goncy/react-swipy/issues/2?email_source=notifications&email_token=ACCSZUZYD6YZR2QSLDTQCN3PW4TNHA5CNFSM4HPKQSOKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGORTUDPFA#event-2364028820, or mute the thread https://github.com/notifications/unsubscribe-auth/ACCSZU6CBJUDP7EL57YSX7TPW4TNHANCNFSM4HPKQSOA .