Topic: touch kills scroll on element

incust priority asked 4 months 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 4 months 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 priority commented 4 months 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: Priority
  • 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