Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

hooooope
Copy link
Contributor

What kind of this PR? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Build-related changes
  • Other, please describe:

Other information:
1.Since the scroll range of the container = [0 ~ scrollHeight-clientHeight],
so lastCalcIndex is never equal to lastIndex.
2.When not scrolling to the bottom, paddingTop affects the position of the real element in the viewport, but paddingBottom
does not
3.When scrolling to the bottom, paddingBottom = (last - end) * this.getEstimateSize(),
since last - end = 0, so it is the right result

@tangbc tangbc merged commit 1a687dc into tangbc:master May 29, 2023
bimalghartimagar pushed a commit to bimalghartimagar/vue-virtual-scroll-list that referenced this pull request Jan 21, 2024
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