Open Skrypt opened 1 year ago
I found the method of installing default-passive-events on the internet and the warning disappeared. But when I use the scrolling chart of echarts, I will report an error: Unable to preventDefault inside passive event listener invocation
Will this bug be fixed soon?
Hope to fix it in the next release
+1
+1
We need to fix this problem, please.
Some components like DataZoom
will need to stop the scroll behavior, so it can't be simply set as passive
.
+1, v5.4.2
+1, v5.4.3
+1 需要修复这个问题
+1 echarts@v5.4.3 zrender@5.4.4 调用echarts.init初始化时 就会出现这个告警
请在 init 方法调用mousewheel监听的事件中添加 { passive: true } 选项参数,屏蔽一下这个警告,谢谢
添加了 { passive: true } 选项参数 ,没生效 还是报这个警告,你们的解决了吗
添加了 { passive: true } 选项参数 ,没生效 还是报这个警告,你们的解决了吗
官方都没有这个 参数,肯定没生效呢。 目前看没有解决,我也遇到同样的警告在init时
I have the same issue
+1
+1
建议新版本在相关的处理事件的监听中,显式的声明出 passive 的状态,以屏蔽此警告
Any new developments?
v5.5.0 also get warnning
Is there any progress on this?
+1 需要修复这个问题
I also got this waning. Is there a plan to fix this?
Also applicable on macOS 14.6.1 with Chrome 127.0.6533.120 and ECharts 5.5.1
My package version is like below. and it is still make warning in console. "echarts": "^5.5.1", "echarts-for-react": "^3.0.2",
is there any way to optimize performance in echarts-for-react like "add passive property in echarts-for-react" ?
+1
+1 Same behaviour in "echarts": "^5.5.1", for angular, with dataZoom, so it cannot be turned to passive. Would like to have a solution for this
Some components like
DataZoom
will need to stop the scroll behavior, so it can't be simply set aspassive
.
Since the bug has been taken off it has been a long time, is there going to be a solution any time soon? As you said, you cannot just set it to passive, since DataZoom is there...
+1 , "echarts": "^5.5.1"
Version
5.4.1
Link to Minimal Reproduction
No response
Steps to Reproduce
Current Behavior
[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
Expected Behavior
This violation warning should not display.
Environment
Any additional comments?
No response