UNPKG

@uppy/provider-views

Version:

View library for Uppy remote provider plugins.

7 lines (6 loc) 248 B
const shouldHandleScroll = (event) => { const { scrollHeight, scrollTop, offsetHeight } = event.target; const scrollPosition = scrollHeight - (scrollTop + offsetHeight); return scrollPosition < 50; }; export default shouldHandleScroll;