F2 icon indicating copy to clipboard operation
F2 copied to clipboard

横屏状态设置滚动条后,touch事件方向未变

Open 30stomars opened this issue 4 years ago • 3 comments

  • [ ] 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 -

我是在官方示例横屏图的页面直接修改的,设置滚动条后,还是竖屏的左右方向滑动才起作用

30stomars avatar Apr 08 '21 08:04 30stomars

解决了吗? 官方没有人回应一下吗?这个问题真实存在呀,而且会给用户误导。。。

way-Eric avatar Jun 02 '21 10:06 way-Eric

这个开源项目很让人失望啊,issue官方都没人回复,有问题也不解决。不知道为什么要开源

LHMing01 avatar Jun 07 '21 08:06 LHMing01

解决了吗? 官方没有人回应一下吗?这个问题真实存在呀,而且会给用户误导。。。

没有,我跟我们产品干了一架,最终说服了他🐶

30stomars avatar Jun 07 '21 09:06 30stomars