You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, actually I'm coming here because of an issue that I've found in ant-design's tab. I recently discovered that the location of the problem was in rc-tabs. So I tried cloning the master branch and inspecting where the problem was. Finally I found that this problem can be solved by removing e.preventDefault() in useTouchMove.ts file.
You don't have to edit code in node_modules, only add event touchmove on parent element of target element that register event to prevent you scroll. Afterward you add ev.stopPropagation() with ev is parameter to event handler. Problem resolved!
You don't have to edit code in node_modules, only add event touchmove on parent element of target element that register event to prevent you scroll. Afterward you add ev.stopPropagation() with ev is parameter to event handler. Problem resolved!
Hi, actually I'm coming here because of an issue that I've found in ant-design's tab. I recently discovered that the location of the problem was in
rc-tabs
. So I tried cloning the master branch and inspecting where the problem was. Finally I found that this problem can be solved by removinge.preventDefault()
inuseTouchMove.ts
file.You can see it on the branch I forked:
irvanherz@251d871#diff-6098251a64dc37073e837fba36078438a119c06311050fdbc9975bcbd632c60e
Is this small change ok to fix the bug?
Reproduction link
Steps to reproduce
From any mobile browser, try to swipe view up or down by starting finger touching Tabs' bar.
What is expected?
It should scrolling view up/down as I swipe.
What is actually happening?
It does nothing.
My project using many tabs at home page. This bug oftenly brings problem for any users who open the page from mobile browser.
The text was updated successfully, but these errors were encountered: