Skip to content

Commit

Permalink
better selector effect
Browse files Browse the repository at this point in the history
  • Loading branch information
daimajia committed Sep 16, 2014
1 parent bfd2f6b commit 7ba5e8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# org.gradle.parallel=true


VERSION_NAME=1.1.0
VERSION_CODE=11
VERSION_NAME=1.1.1
VERSION_CODE=12
GROUP=com.daimajia.swipelayout

ANDROID_BUILD_MIN_SDK_VERSION=8
Expand Down
6 changes: 3 additions & 3 deletions library/src/main/java/com/daimajia/swipe/SwipeLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,6 @@ public boolean onTouchEvent(MotionEvent event) {
return true;
}

if(touching != null)
touching.setPressed(false);

float distanceX = event.getRawX() - sX;
float distanceY = event.getRawY() - sY;
float angle = Math.abs(distanceY / distanceX);
Expand Down Expand Up @@ -817,6 +814,9 @@ public boolean onTouchEvent(MotionEvent event) {
parent.requestDisallowInterceptTouchEvent(false);
return false;
}else{
if(touching != null){
touching.setPressed(false);
}
parent.requestDisallowInterceptTouchEvent(true);
mDragHelper.processTouchEvent(event);
}
Expand Down

1 comment on commit 7ba5e8b

@lonuery
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对,将这个地方小修改一下就行。

Please sign in to comment.