weex icon indicating copy to clipboard operation
weex copied to clipboard

作为一个纯良的Scroll元素,是否可以支持onscroll事件

Open and80506 opened this issue 9 years ago • 6 comments

<scroller scroll-direction="horizontal" onscroll="handlescroll"></scroller>

handlescroll事件无响应

and80506 avatar Dec 08 '16 10:12 and80506

android还是ios?

sospartan avatar Dec 08 '16 12:12 sospartan

ios

and80506 avatar Dec 09 '16 08:12 and80506

还有缩放功能等等

liwenyou avatar Dec 13 '16 08:12 liwenyou

暂时还不可以, 支持onScroll 会有性能问题,每次拖动都会增加一次 native 和JS 之间的通信,最主要的是scroll 的时候是连续的

acton393 avatar Dec 13 '16 08:12 acton393

先汇总到 #1494 了

Jinjiang avatar Dec 23 '16 23:12 Jinjiang

@acton393 @Jinjiang html5中会支持onScroll吗?或者在html5中有什么手段可以监听到滑动事件,获取到offsetY?

452MJ avatar Nov 15 '17 07:11 452MJ