Skip to content

Commit 987b846

Browse files
committed
emergency fix
1 parent dc9e377 commit 987b846

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

library/src/main/java/com/lcodecore/tkrefreshlayout/RefreshProcessor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public boolean consumeTouchEvent(MotionEvent e) {
4545
switch (e.getAction()) {
4646
case MotionEvent.ACTION_MOVE:
4747
float dy = e.getY() - mTouchY;
48-
4948
if (cp.isStatePTD()) {
5049
dy = Math.min(cp.getMaxHeadHeight() * 2, dy);
5150
dy = Math.max(0, dy);

library/src/main/java/com/lcodecore/tkrefreshlayout/TwinklingRefreshLayout.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,10 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
177177

178178
@Override
179179
public boolean onTouchEvent(MotionEvent e) {
180-
boolean resume = cp.consumeTouchEvent(e);
181-
return resume || super.onTouchEvent(e);
180+
boolean consume = cp.consumeTouchEvent(e);
181+
return consume || super.onTouchEvent(e);
182182
}
183183

184-
185184
/*************************************
186185
* 开放api区
187186
*****************************************/

0 commit comments

Comments
 (0)