Skip to content

Conversation

chintankavathia
Copy link
Member

What kind of change does this PR introduce? (check one with "x")
column pinning used transform: translate3d to freeze columns on left/right. This approach was having significant performance issues as on every pixel scroll it calculated how much to translate so that frozen columns stays on view.

This PR changes the above approach and use css position:sticky to achieve the same behaviour eliminating need for
calculating pixels to translate. It also solves the flicker problems which were caused while doing horizontal scroll extremely
fast along with column pinning.

To see the flicker problems

  • go to https://siemens.github.io/ngx-datatable/#pinning

  • open it in safari where this problem is very much visible

  • do horizontal scrolls

  • Bugfix

  • Feature

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

What is the new behavior?

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

Copy link
Member

@timowolf timowolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timowolf timowolf merged commit e9d6fbe into siemens:master Oct 23, 2024
1 check passed
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.

2 participants