Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰[BUG]Antd charts blocks page scroll on mobile web (android) #2532

Open
RubelBiswasCS opened this issue May 6, 2024 · 1 comment
Open

Comments

@RubelBiswasCS
Copy link

RubelBiswasCS commented May 6, 2024

In my website I have a page containing 6-7 ant design plot charts, there is also other content on that page. Now the problem with antd chart is when tried to scroll with touch in mobile phone (Android). touch on the chart blocks the page scroll, like page does not scroll when thumb on any of these charts. only showing tooltip of the chart. How can i solve this issue. @ant-design/plots": "^2.1.13" that the version used. also tried different version by upgrade or downgrading the version but the result is the same.

for example, this is the page -> https://mobiledev.biniyog.com.bd/company/1STPRIMFMF, can login in with google if anyone want to view this issue.

@RubelBiswasCS
Copy link
Author

RubelBiswasCS commented May 15, 2024

It seems by default touch-action: none applied to the chart's canvas element. Finally solved this issue by applying this css rule, touch action: pan-y to the canvas element.

canvas {
  touch-action: pan-y !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant