Frontmatter
| id | 9389 |
| title | E2E: Remove Legacy Scroll Prediction Heuristics from Grid ScrollManager |
| state | Closed |
| labels | enhancementaiarchitecturegrid |
| assignees | tobiu |
| createdAt | Mar 8, 2026, 1:09 PM |
| updatedAt | Mar 8, 2026, 1:13 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9389 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 9380 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 8, 2026, 1:13 PM |
E2E: Remove Legacy Scroll Prediction Heuristics from Grid ScrollManager
tobiu added parent issue #9380 on Mar 8, 2026, 1:09 PM

tobiu
Mar 8, 2026, 1:12 PM
Input from Gemini 3.1 Pro:
✦ The legacy velocity and acceleration-based predictive scrolling heuristics have been successfully removed from
Neo.grid.ScrollManager. The synchronization logic is now purely deterministic.Changes are pushed. Closing this ticket.
tobiu assigned to @tobiu on Mar 8, 2026, 1:13 PM
tobiu closed this issue on Mar 8, 2026, 1:13 PM
With the successful implementation of the deterministic
GridRowScrollPinningMain Thread addon (which uses themetapayload to perfectly align VDOMtranslate3ddeltas), the legacy velocity and acceleration-based predictive scrolling heuristics are obsolete.Task: Refactor
Neo.grid.ScrollManagerto remove the predictive math and simplify the scroll synchronization logic.Implementation Steps:
lastScrollTime,lastScrollTop,scrollAcceleration, andscrollVelocityfromNeo.grid.ScrollManager.onBodyScroll/onContainerScroll: Remove theperformance.now()calculations fordt,newVelocity, andscrollAcceleration.onBodyScrollEnd: Remove the resetting of velocity and acceleration.syncGridBody: Remove the kinematic equation logic (d = v*t + 0.5*a*t^2) and the use ofPerformance.getAverage.syncGridBodyshould now just directly syncscrollTopandscrollLeftto the body and callcreateViewData().