UNPKG

@uppy/provider-views

Version:

View library for Uppy remote provider plugins.

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