antvis / antvis/F2

微信网页图表加入平移缩放(pan/pinch)后,此时如果按住图表则没法上下滑动整个页面

Open
#1,080 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

### 图标加入平移缩放(pan/pinch)后,此时如果按住图表则没法上下滑动整个页面

![image](https://user-images.githubusercontent.com/63445267/99020428-967e0f80-2599-11eb-8da9-fe62a9bee1ef.png)

测试了好几个同事的手机都是这样。

加入平移缩放相应的代码:
```javascript
chart.interaction('pan')
chart.interaction('pinch', {
minScale: 1,
maxScale: 20
})
```

这个问题似乎是个历史遗留问题?我在开发的时候就是,最近两个月被调去做别的项目,今天经理又问了我这个问题,上网查了下,并没有找到解决的办法。

想问下开发者大大们有没有在之后的版本处理掉这个问题。我使用的是`vux`这个ui组件库,它里面的`f2`版本是`3.7.1`。

The issue which is not created via https://antv-issue-helper.surge.sh will be closed immediately.

---

注意:不是用 https://antv-issue-helper.surge.sh 创建的 issue 会被立即关闭。

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in WeChat using Vux's F2 3.7.1 with the reported chart.interaction('pan') and chart.interaction('pinch') configuration. Compare page scrolling while touching the chart on affected phones; done means pan and pinch still work while a touch that is not a chart gesture can scroll the page normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.