G2 icon indicating copy to clipboard operation
G2 copied to clipboard

g-base 这个库,EventController 对象鼠标和滚轮事件addEventListener加入 { passive: true }

Open qiuyeduxin opened this issue 4 years ago • 6 comments

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

What problem does this feature solve?

当大盘同时有多个图表加载时候,滚动页面会非常卡顿,浏览器也会大量的报no-passive警告,加入这个可以解决卡顿,记得兼容哦

What does the proposed API look like?

qiuyeduxin avatar Sep 23 '20 09:09 qiuyeduxin

这个库没人维护了吗? g-base 这个包目前只能找到一个 npm 的链接,也没有 git 仓库...

Fiv5 avatar Dec 28 '21 13:12 Fiv5

在 @antv/g 中,monorepo的方式

visiky avatar Dec 28 '21 15:12 visiky

在 @antv/g 中,monorepo的方式

这个我有找过,但还是没找到在哪😂 https://github.dev/antvis/g/blob/next/packages/g/package.json image

Fiv5 avatar Dec 29 '21 03:12 Fiv5

master 分支,next 分支是 G 5.0 对应 https://g-next.antv.vision

visiky avatar Dec 29 '21 03:12 visiky

master 分支,next 分支是 G 5.0 对应 https://g-next.antv.vision

感谢,找到了。那么关于 passive 这个,当前版本有计划吗?

Fiv5 avatar Dec 29 '21 03:12 Fiv5

g-baseevent-controller,会绑定 document 的 mousemove 事件,在页面有多个 bizCharts 实例时,鼠标移动都会造成明显卡顿。 image

Fiv5 avatar Dec 31 '21 11:12 Fiv5

@xiaoiver 这个问题我印象中已经解决了?麻烦看一下。

hustcc avatar Aug 22 '23 10:08 hustcc

目前 4.x G 不会维护了,可以使用 5.x 的 G:https://github.com/antvis/G 。

pearmini avatar Nov 30 '23 09:11 pearmini