G2
G2 copied to clipboard
设置supportCSSTransform: true后,在移动端没有效果
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
切换到移动端调试模式,鼠标拖动显示tooltip的位置和鼠标位置不符。坐标轴的滚动条也无法准确拖动
| Environment | Info |
|---|---|
| g2 | 4.1.36 |
| System | - |
| Browser | - |
@sage-wen 你是只需要什么样的效果?
统计图在pad上显示,因为父级节点存在transform: scale属性,导致统计图无法准确的交互,如SandBox的例子所表现的X轴拖动条无法拖动
你是怎么添加的,我们这边产品也有类似的需求,添加 supportCSSTransform 之后可以解决的。
测试地址 https://zperb.csb.app/ 如下图所示打开移动端调试,滚动条无法拖动

复现了, 应该是 slider 的 touch 事件没有处理好。