-
Notifications
You must be signed in to change notification settings - Fork 25
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to cancel Tooltip TouchEvent when chart in scrollview #144
Comments
@SilentMelody Can the Click trigger logic be optimized? |
Thanks for reply, |
The click can be triggered at the end of the gesture, depending on the position (e.g. if it moves more than x pixels). https://github.com/wuba/react-native-echarts/blob/main/src/components/PanResponderHandler.tsx#L97 https://github.com/wuba/react-native-echarts/blob/main/src/components/RNGestureHandler.tsx#L64 |
hi there. |
src/components/PanResponderHandler.tsx#L97src/components/PanResponderHandler.tsx#L97 patch-package -> add a boolean value "isAvoidPressOnScroll" and everything working good.
|
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 cancelledhow to cancel tooltip triggered when user gesture scroll out the chart view ?
Screen.Recording.2024-01-19.at.09.57.08.mov
The text was updated successfully, but these errors were encountered: