antvis/G2

设置supportCSSTransform: true后,在移动端没有效果 #3760

sage-wen posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

https://zperb.csb.app/

Steps to reproduce

切换到移动端调试模式,鼠标拖动显示tooltip的位置和鼠标位置不符。坐标轴的滚动条也无法准确拖动

Environment Info
g2 4.1.36
System -
Browser -

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


@sage-wen 你是只需要什么样的效果?

posted by hustcc over 3 years ago

统计图在pad上显示,因为父级节点存在transform: scale属性,导致统计图无法准确的交互,如SandBox的例子所表现的X轴拖动条无法拖动

posted by sage-wen over 3 years ago

你是怎么添加的,我们这边产品也有类似的需求,添加 supportCSSTransform 之后可以解决的。

posted by hustcc almost 3 years ago

测试地址 https://zperb.csb.app/ 如下图所示打开移动端调试,滚动条无法拖动 image

posted by sage-wen almost 3 years ago

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

posted by hustcc almost 3 years ago

Fund this Issue

$0.00
Funded

Pull requests