touch kills scroll on element


Topic: touch kills scroll on element

incust pro premium priority asked 2 years ago

I setup MDBTouch for left and right swip and I except to see swipe works and scroll on element works

Swipe works good, but scroll does not work on element, where is setup swipe

<MDBTouch type={'swipe'} onSwipeRight={() => doSomething} onSwipeLeft={() => doSomethingElse} threshold={100} tag={'div'} > container with a lot of cards here, so, with scroll </MDBTouch>


Krzysztof Wilk staff answered 2 years ago

Hi!

Thanks for reporting that. That is caused by e.preventDefault() called in the swipe function. We'll try to fix that as soon as possible.

I'm afraid there's no workaround for that. For now - you can copy and edit the source code you can find in our GitLab repository. Sorry for that :(


incust pro premium priority commented 2 years ago

Thanks for your answer. Now I made own function for detecting swipe


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.1.0
  • Device: Mobile
  • Browser: all
  • OS: android, (ios not tested)
  • Provided sample code: No
  • Provided link: No