F2
F2 copied to clipboard
横屏状态设置滚动条后,touch事件方向未变
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
https://antv-f2.gitee.io/zh/examples/creative/case#landscape
Steps to reproduce
fetch('https://gw.alipayobjects.com/os/antfincdn/Jpuku6k%24q%24/linear-pan.json')
.then(res => res.json())
.then(data => {
const originDates = [];
const originSteps = [];
const firstDayArr = [];
data.forEach(function (obj) {
if (obj.date >= '2018-05-01') {
originDates.push(obj.date);
originSteps.push(obj.steps);
}
if (obj.first) {
firstDayArr.push(obj);
}
});
const chart = new F2.Chart({
id: 'container',
pixelRatio: window.devicePixelRatio
});
chart.source(data, {
release: {
min: 1970,
max: 2010
}
});
chart.line().position('release*count');
chart.point().position('release*count').style({
lineWidth: 1,
stroke: '#fff'
});
// 定义进度条
chart.scrollBar({
mode: 'x',
xStyle: {
backgroundColor: 'transparent',
fillerColor: 'transparent',
offsetY: -2
}
});
chart.interaction('pan');
chart.render();
});
| Environment | Info |
|---|---|
| f2 | 3.8.6 |
| System | - |
| Browser | - |
我是在官方示例横屏图的页面直接修改的,设置滚动条后,还是竖屏的左右方向滑动才起作用
解决了吗? 官方没有人回应一下吗?这个问题真实存在呀,而且会给用户误导。。。
这个开源项目很让人失望啊,issue官方都没人回复,有问题也不解决。不知道为什么要开源
解决了吗? 官方没有人回应一下吗?这个问题真实存在呀,而且会给用户误导。。。
没有,我跟我们产品干了一架,最终说服了他🐶