Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Added non-passive event listener to a scroll-blocking event #1100

Open
jgadsden opened this issue Oct 6, 2024 · 1 comment
Open

Bug: Added non-passive event listener to a scroll-blocking event #1100

jgadsden opened this issue Oct 6, 2024 · 1 comment
Assignees
Labels
AntV/X6 bug Something isn't working version-2.5
Milestone

Comments

@jgadsden
Copy link
Collaborator

jgadsden commented Oct 6, 2024

Describe the bug:
there are violations reported in the developer console window when developer tools are enabled, for example:

util.js:12 [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

and similarly for 'touchstart' events

these are due to the antv/x6 common library, and we need to wait for a newer version of @antv/x6

Expected behaviour:

no warnings that slow down the application

Environment:

  • Version: latest antv/x6 version 2.18.1
  • Platform: both Web App / Desktop App
  • OS: probably all MacOS / Windows / Linux
  • Browser: any chrome, firefox, safari

To Reproduce:
open a diagram with developer tools enabled

Any additional context, screenshots, etc:

Screenshot 2024-10-06 at 10 20 14
@jgadsden jgadsden added bug Something isn't working version-3.x AntV/X6 labels Oct 6, 2024
@jgadsden jgadsden added this to the Version 2.3 milestone Oct 9, 2024
@jgadsden jgadsden self-assigned this Oct 16, 2024
@jgadsden
Copy link
Collaborator Author

jgadsden commented Oct 16, 2024

possibly use library Fix the [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. error message using library passive-events-support

@jgadsden jgadsden removed this from the Version 2.3 milestone Oct 16, 2024
@jgadsden jgadsden added this to the Version 2.5 milestone Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AntV/X6 bug Something isn't working version-2.5
Projects
None yet
Development

No branches or pull requests

1 participant