You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Skrypt (via GitHub)" <gi...@apache.org> on 2023/02/09 16:29:20 UTC

[GitHub] [echarts] Skrypt opened a new issue, #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Skrypt opened a new issue, #18255:
URL: https://github.com/apache/echarts/issues/18255

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   ```javascript
   import * as echarts from "echarts";
   
   echarts.init(container);
   ```
   
   ### 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
   
   ![image](https://user-images.githubusercontent.com/3228637/217874086-25ac1a42-b7ad-4a8c-b4de-fc765ac30470.png)
   
   
   ### Expected Behavior
   
   This violation warning should not display.
   
   ### Environment
   
   ```markdown
   - OS: Windows 11
   - Browser: 110.0.5481.77
   - Framework: Vue 3
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] cj123195 commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "cj123195 (via GitHub)" <gi...@apache.org>.
cj123195 commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1635129212

   +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. [echarts]

Posted by "zyt520ham (via GitHub)" <gi...@apache.org>.
zyt520ham commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1811779473

   请在 init 方法调用mousewheel监听的事件中添加 { passive: true } 选项参数,屏蔽一下这个警告,谢谢


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] clark-tan commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "clark-tan (via GitHub)" <gi...@apache.org>.
clark-tan commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1557115543

   Hope to fix it in the next release


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] yimingbot commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "yimingbot (via GitHub)" <gi...@apache.org>.
yimingbot commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1711005761

   +1 echarts@v5.4.3 zrender@5.4.4
   调用echarts.init初始化时 就会出现这个告警
   
   ![image](https://github.com/apache/echarts/assets/104964712/7bab0e44-9f10-40ef-9a5f-8fe29fcc6e73)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] kanxingyv commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "kanxingyv (via GitHub)" <gi...@apache.org>.
kanxingyv commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1627579927

   We need to fix this problem, please.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. [echarts]

Posted by "AKclown (via GitHub)" <gi...@apache.org>.
AKclown commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1857213956

   > 添加了 { passive: true } 选项参数 ,没生效 还是报这个警告,你们的解决了吗
   
   官方都没有这个 参数,肯定没生效呢。 目前看没有解决,我也遇到同样的警告在init时


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] ericrange commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "ericrange (via GitHub)" <gi...@apache.org>.
ericrange commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1580417929

   +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. [echarts]

Posted by "YI-- (via GitHub)" <gi...@apache.org>.
YI-- commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-2046648818

   Any new developments?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] Thevyn commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "Thevyn (via GitHub)" <gi...@apache.org>.
Thevyn commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1619826456

   +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] rr13k commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "rr13k (via GitHub)" <gi...@apache.org>.
rr13k commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1700452089

   +1 需要修复这个问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. [echarts]

Posted by "NazarovAsadbek-AX (via GitHub)" <gi...@apache.org>.
NazarovAsadbek-AX commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1871728870

   +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] plainheart commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1627728546

   Some components like `DataZoom` will need to stop the scroll behavior, so it can't be simply set as `passive`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] doyao commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "doyao (via GitHub)" <gi...@apache.org>.
doyao commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1425368405

   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. [echarts]

Posted by "History-1024 (via GitHub)" <gi...@apache.org>.
History-1024 commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1833052569

   添加了 { passive: true } 选项参数 ,没生效 还是报这个警告,你们的解决了吗


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. [echarts]

Posted by "shifatul-i (via GitHub)" <gi...@apache.org>.
shifatul-i commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1868387251

   +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] LvChengbin commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "LvChengbin (via GitHub)" <gi...@apache.org>.
LvChengbin commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1465178174

   Will this bug be fixed soon?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. [echarts]

Posted by "Dev-Hogan (via GitHub)" <gi...@apache.org>.
Dev-Hogan commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1857355561

   I have the same issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] chainix commented on issue #18255: [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Posted by "chainix (via GitHub)" <gi...@apache.org>.
chainix commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1646925470

   +1, v5.4.3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. [echarts]

Posted by "xiaoyan13 (via GitHub)" <gi...@apache.org>.
xiaoyan13 commented on issue #18255:
URL: https://github.com/apache/echarts/issues/18255#issuecomment-1975773172

   建议新版本在相关的处理事件的监听中,显式的声明出 passive 的状态,以屏蔽此警告


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org