liaoinstan / SpringView

🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use
Apache License 2.0
1.93k stars 355 forks source link

阅读源码的一些问题 #36

Closed lfkdsk closed 7 years ago

lfkdsk commented 8 years ago

                    // 手指在产生移动的时候(dy!=0)才重置位置
                    if (dy != 0 && isFlow()) {
                        resetPosition();
                        // 把滚动事件交给内部控件处理
                        event.setAction(MotionEvent.ACTION_DOWN);
                        dispatchTouchEvent(event);
                        isInControl = false;
                    }

这里向子View传递事件为什么要修改事件类型呢?