possible fix for swipe bug
This commit is contained in:
parent
5f8678b047
commit
998158635f
|
|
@ -8,8 +8,8 @@ buildscript {
|
|||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.3.0'
|
||||
classpath 'com.github.dcendents:android-maven-plugin:1.2'
|
||||
// classpath 'com.android.tools.build:gradle:2.3.0'
|
||||
// classpath 'com.github.dcendents:android-maven-plugin:1.2'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
|||
|
|
@ -1307,7 +1307,7 @@ public class SwipeLayout extends FrameLayout {
|
|||
}
|
||||
int surfaceLeft = surfaceView.getLeft();
|
||||
int surfaceTop = surfaceView.getTop();
|
||||
if (surfaceLeft == getPaddingLeft() && surfaceTop == getPaddingTop()) return Status.Close;
|
||||
if (surfaceLeft == getPaddingLeft() && surfaceTop == getPaddingTop() && !mIsBeingDragged) return Status.Close;
|
||||
|
||||
if (surfaceLeft == (getPaddingLeft() - mDragDistance) || surfaceLeft == (getPaddingLeft() + mDragDistance)
|
||||
|| surfaceTop == (getPaddingTop() - mDragDistance) || surfaceTop == (getPaddingTop() + mDragDistance))
|
||||
|
|
|
|||
Loading…
Reference in New Issue