Skip to content

Conversation

p-liar
Copy link

@p-liar p-liar commented Aug 11, 2025

问题描述:我在使用G2 ,通过 scrollable 属性开启滚轮滚动,但是滚动条滚动了内容缺没有滚动。
问题原因:这里设置了一个 animate 变量,在 onScroll 触发时没有去触发更新事件。源码
通过打印可以发现 onScrollonDragging 是分开执行的。如果原本是为了避免频繁触发,这里也应该是用个节流
钉钉录屏_2025-08-11 170037

@moayuisuda
Copy link
Contributor

我这看了下应该 ok,onScroll 且 animate 为 true 时,调用的是 setValues,不会发送 valueChange 事件触发图表更新。不知道有没啥其他坑 @interstellarmt @Aarebecca
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants