primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.58k stars 4.61k forks source link

Component: Table - Virtualscroll + Frozen cols broken when scrolling upwards #16581

Open j4ckp0t85 opened 1 month ago

j4ckp0t85 commented 1 month ago

Describe the bug

When using a table with virtualscroll feature and a bunch of frozen columns the vertical scrolling seems broken, especially going upwards. On the interface you notice a rows jump effect caused probably by a wrong slice offset handled. The onScrollIndexChange callback is emitting twice going upwards with two different indexes

Environment

Tried both on local environment and stackblitz

Reproducer

https://stackblitz.com/edit/es8wpw-ixccng

Angular version

17.3.12

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.18.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Drag and drop the vertical scrollbar at a certain point (outside the pre-rendered items)
  2. Scroll upwards slowly

Expected behavior

It should respect the correct offset slice to be renderer on viewport / pre-rendered tolerated items

github-actions[bot] commented 16 hours ago

Due to PrimeNG team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. :sparkles: Thank you for your contribution! :sparkles: