arco-design-vue icon indicating copy to clipboard operation
arco-design-vue copied to clipboard

页面缩放后导致select 触底加载不触发

Open shanyiwq opened this issue 6 months ago • 0 comments

Basic Info

Extra info

页面缩放百分之90或者110的时候我的电脑都不触发,多了个1像素的偏差,我看源码里面有一个bottomOffset,这里配置成1像素的话又会触发多次,下方的arcodesign的select触底源码 const handleScroll = (e: Event) => { const { scrollTop, scrollHeight, offsetHeight } = e.target as HTMLElement; const bottom = scrollHeight - (scrollTop offsetHeight); if (bottom <= props.bottomOffset) { emit('reachBottom', e); } emit('scroll', e); }; 感觉可以参考下vueuse的useInfiniteScroll的方法,这个不会导致缩放影响触底事件。

shanyiwq avatar May 20 '25 10:05 shanyiwq