lcodecorex / TwinklingRefreshLayout

RefreshLayout that support for OverScroll and better than iOS. 支持下拉刷新和上拉加载的RefreshLayout,自带越界回弹效果,支持RecyclerView,AbsListView,ScrollView,WebView
Apache License 2.0
4k stars 672 forks source link

item点击不灵敏,容易误触发上下滑动 #68

Closed maxiaoyi89 closed 7 years ago

maxiaoyi89 commented 7 years ago

加载更多后,点击item时很容易触发上下滑动,所以会出现点击不灵敏的感觉,希望作者能修复

lcodecorex commented 7 years ago

收到。感谢反馈。尽快修复!

lcodecorex commented 7 years ago

能报一下机型,版本,使用场景吗

bd506723144 commented 7 years ago

今天也遇到过, 场景是 1 recyclerView 长按点击事件偶尔获取不到事件 还在排查是不是我自己代码问题 2 长按 点击在Item上 手指上滑会触发上拉加载

lcodecorex commented 7 years ago

这个问题不太好弄,我这边一直没遇到。应该是fling动作的监听太敏感了

maxiaoyi commented 7 years ago

三星S6,6.0系统,可以看到点击时有很微小的上下滑动,另外在我的乐视手机上没问题,这个也是6.0系统

mecobean commented 7 years ago

@lcodecorex 在华为Meta8/9上item点击事件会和下拉刷新冲突 。

twinklingRefreshLayout.setOnRefreshListener(new RefreshListenerAdapter() {
            @Override
            public void onPullingDown(TwinklingRefreshLayout refreshLayout, float fraction) {
                //尝试在下拉过程中加处理 不起作用
                if (fraction > 10)
                    super.onPullingDown(refreshLayout, fraction);
            }
            ...
        }
//---------------------------------
//框架源码
  @Override
    public void onPullingDown(TwinklingRefreshLayout refreshLayout, float fraction) {
        mHeadView.onPullingDown(fraction, mMaxHeadHeight, mHeadHeight);
        if (!enableRefresh) return;
        if (refreshListener != null) refreshListener.onPullingDown(refreshLayout, fraction);
    }
lcodecorex commented 7 years ago

v1.07版已修复!