wuba / wuba/react-native-echarts
使用RNGH后,图表的点击事件监听不到,zoom特别卡有延迟
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 967
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
const gesture = useCallback((defaultGestures, dispatchEvents) => {
const pan = defaultGestures[0];
pan.onStart(() => {}).onEnd(() => {});
const pinch = defaultGestures[1];
pinch.onStart(() => {}).onEnd(() => {});
return [pan, pinch];
}, []);
SvgChart
ref={node => {
chartRef.current = node;
}}
useRNGH
gesture={gesture}
/>
使用RNGH后,图表的点击事件监听不到,zoom特别卡跟有延迟似的。
只是传了一个空的gesture,这个gesture需要做什么处理吗?
demo看过了,也没看没做什么特殊处理
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the shown gesture callback and the SvgChart useRNGH path, then compare its behavior with the repository demo. Reproduce both missing click events and delayed zoom, and consider the issue done when gesture handling preserves click events and zoom responds without the reported lag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100