wuba / wuba/react-native-echarts

How to cancel Tooltip TouchEvent when chart in scrollview

Open
#144 5 comments 0 reactions 1 assignee View on GitHub

@SilentMelody is already working on this.

Since Jan 19, 2024.

Dominant language
TypeScript
Stars
967
Forks
35
PR merge metrics
No merged PRs in 30d

Description

When i put <TouchableOpacity /> inside <Scrollview />, the press event can be cancelled when the gesture scroll-out.
But with the <Chart /> inside <Scrollview />, tooltip {trigger: "item"} event in <Chart /> will trigger immediately and show tooltip on press-in, cannot be cancelled

how to cancel tooltip triggered when user gesture scroll out the chart view ?

https://github.com/wuba/react-native-echarts/assets/30792140/aeddc8c9-bcf7-41d8-9281-ae9701894a2a

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.