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

Scroll-linked effects warning #6334

Closed
fredz5 opened this issue Mar 16, 2023 · 1 comment
Closed

Scroll-linked effects warning #6334

fredz5 opened this issue Mar 16, 2023 · 1 comment

Comments

@fredz5
Copy link

fredz5 commented Mar 16, 2023

In Firefox, a warning is displayed in the developper tool console when using the ag-grid horizontal scrollbar.

Step to reproduce:

  • Open the FireFox developper tool console
  • use the horizontal scrollbar and scroll to right (just scroll).

Here is the complete warning message in the console:

This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html for further details and to join the discussion on related tools and features!

The problem can easily be reproduced in Firefox on ag-grid official website and scrolling to right https://www.ag-grid.com/react-data-grid/scrolling-scenarios/

Capture d’écran, le 2023-03-16 à 17 38 52

This warning don't seems to cause problem using ag-grid though

@StephenCooper
Copy link
Member

Hi @fredz5,

This is fired due to the scroll linking between the grid body and the header cells. We listen for horizontal scroll events on the grid body to then keep the headers in line as they are implemented in separate dom trees. We are aware of the potential downsides to this approach but that is outweighed by the flexibility and features we can support with this approach.

Thanks for reporting but as you say the grid works despite this warning.

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

No branches or pull requests

2 participants