Skip to content
Source
Sign inSign up
TanStack/virtual

fix(virtual-core): scroll to last index properly #1105

Mergedpiecykmerged 2 commits intomain fromrefs/pull/1105/headmerged by piecyk

piecykcommented

🎯 Changes

Fixed scrollToIndex issues when scrolling to the last element in the list

closes https://github.com/TanStack/virtual/issues/1001

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
    1. 🦋 Changeset detected

      Latest commit: a6a3bbb9e2342729c0c541f0ca25be3ebd9c2142

      The changes in this PR will be included in the next version bump.

      This PR includes changesets to release 7 packages
      NameType
      @tanstack/virtual-corePatch
      @tanstack/angular-virtualPatch
      @tanstack/lit-virtualPatch
      @tanstack/react-virtualPatch
      @tanstack/solid-virtualPatch
      @tanstack/svelte-virtualPatch
      @tanstack/vue-virtualPatch

      Not sure what this means? Click here to learn what changesets are.

      Click here if you're a maintainer who wants to add another changeset to this PR

    2. View your CI Pipeline Execution ↗ for commit a6a3bbb9e2342729c0c541f0ca25be3ebd9c2142

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded2m 5sView ↗
      nx run-many --target=build --exclude=examples/**✅ Succeeded16sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-01-03 14:23:25 UTC

    3. More templates

      @tanstack/angular-virtual

      npm i https://pkg.pr.new/@tanstack/angular-virtual@1105

      @tanstack/lit-virtual

      npm i https://pkg.pr.new/@tanstack/lit-virtual@1105

      @tanstack/react-virtual

      npm i https://pkg.pr.new/@tanstack/react-virtual@1105

      @tanstack/solid-virtual

      npm i https://pkg.pr.new/@tanstack/solid-virtual@1105

      @tanstack/svelte-virtual

      npm i https://pkg.pr.new/@tanstack/svelte-virtual@1105

      @tanstack/virtual-core

      npm i https://pkg.pr.new/@tanstack/virtual-core@1105

      @tanstack/vue-virtual

      npm i https://pkg.pr.new/@tanstack/vue-virtual@1105

      commit: a6a3bbb

    4. piecyk merged this5a273bf

    5. piecyk closed this

Sign in to join this conversation.