Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remove useless "lastCalcIndex" judgment #407

Merged
merged 1 commit into from
May 29, 2023
Merged

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