prevent page scroll in line graph. 🤔 [QUESTION]
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛 Question description [Please make everyone to understand it]
On line graph for mobile view, it is reasonable to touch over on the line and move left and right to change the selected point. However, when the touchpoint moves around, the page will scroll by it. Is there anyway we can prevent page scroll when touchover on g2plot?
手机视图折线图中用户可以单指点击折线图上某一点,然后向左向右滑动做出选择。但是滑动的时候如果有向上向下的活动,那么页面也会跟着滑动。有没有办法可以在点击图的时候防止页面滚动?
### 💻 Link to minimal reproduction
Please provide a link by forking these links [g2plot](https://codesandbox.io/s/g2plot-reproduction-template-gyej1) or GitHub repo. What is a minimal reproduction, and why is it required?
### 🏞 Expected result
### 🚑 Any additional [like screenshots]
* **G2Plot Version**:
* **Platform**:
Contributor guide
Research direction
Start with the linked G2Plot CodeSandbox minimal-reproduction template and reproduce the line-graph interaction in a mobile view. Done means horizontal touch selection works without unintended page scrolling when the touchpoint moves around; the issue does not name any source files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100