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

onYReachEnd event keeps firing when scrolling reaches the end of the y-axis #154

Open
3 of 4 tasks
XinwenCheng opened this issue Apr 14, 2023 · 0 comments
Open
3 of 4 tasks

Comments

@XinwenCheng
Copy link

XinwenCheng commented Apr 14, 2023

Make sure these boxes are checked before submitting your issue -- thank you!

  • Check FAQ and Caveats
  • Search if there's already one reported in Issues
  • Prepare a JSFiddle reproducing the issue
  • Provide a page or source code where the issue can be checked
<Box sx={{ p: 0, position: 'relative', overflowX: 'hidden', height: 'calc(100% - 7rem)' }}>
  <PerfectScrollbar
      options={{ wheelPropagation: true, suppressScrollX: true }}
      onYReachEnd={()=>{console.log('onYReachEnd time:', new Date().getTime());}}
    >
      {renderItemList()}
    </PerfectScrollbar>
</Box>

Once the Y axis reaches the end, onYReachEnd keeps firing. How can I make it just fire once each time the Y axis reaches the end? Thanks in advance!

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

No branches or pull requests

1 participant