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

Trigger stickyChange when attaching viewport #129

Conversation

raphael-inglin-ergon
Copy link
Contributor

  • Fixes an issue in chromium browsers where:

    • If the table has a sticky header and stickyPositions is not yet initialized
    • And a scrollToIndex is issued to an index outside the current range
    • The browser triggers a second scroll event when initializing the sticky elements, possibly messing up the scrolling and not showing the index issued to scrollToIndex
  • Strangely, the line reading offsetTop in initStickyPositions seems to be what is triggering the unwanted scroll. Seems to be some browser specific behavior.

Might fix #126 . Confirmation needed.

- Fixes an issue in chromium browsers where:
-- If the table has a sticky header and stickyPositions is not yet initialized
-- And a scrollToIndex is issued to an index outside the current range
-- The browser triggers a second scroll event when initializing the sticky elements, possibly messing up the scrolling and not showing the index issued to scrollToIndex
@diprokon diprokon merged commit ce9730b into diprokon:master Mar 13, 2024
1 check passed
@raphael-inglin-ergon
Copy link
Contributor Author

@diprokon could you give me an ETA on when this change could be available in a published version? We would like to have this fix available in our application as soon as possible.

Thank you :)

@diprokon
Copy link
Owner

@raphael-inglin-ergon I was double checking you fix, and it didn't fix #126 for me :(
The fix is in 1.6.1 now. Hope, it solves your problem

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.

Scrolling issue when using sticky column
2 participants