-
-
Notifications
You must be signed in to change notification settings - Fork 202
Fix: Vertical scrolling causes OffscreenCanvas loss in Grid cells #8960
Copy link
Copy link
Closed
Labels
Description
We are observing a glitch where vertically scrolling the grid can cause some OffscreenCanvas instances (like Sparklines) to be "lost" or appear blank.
Analysis:
This likely relates to the buffered row range mechanism in Neo.grid.Body. When rows are recycled or moved, the VDOM diffing engine might be generating move operations or destructive updates that interfere with the OffscreenCanvas persistence, similar to the horizontal scrolling issue but on the vertical axis.
Investigation Plan:
- Inspect
src/grid/Body.mjsand its row recycling/buffering logic. - Analyze VDOM deltas during vertical scrolling to identify if DOM nodes are being destroyed/recreated instead of moved/updated.
- Ensure that
canvaselements within the recycled rows maintain their worker association.
Goal:
Ensure OffscreenCanvas instances remain stable and connected to their workers during vertical scrolling and row recycling.
Reactions are currently unavailable