mdbootstrap / perfect-scrollbar

Minimalistic but perfect custom scrollbar plugin. Get more free components with Material Design for Bootstrap UI Kit (link below)
https://perfectscrollbar.com/
MIT License
353 stars 69 forks source link

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

Open XinwenCheng opened 1 year ago

XinwenCheng commented 1 year ago

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

<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!