Skip to content

Commit 7014c73

Browse files
committed
Fix a bug with the fadeclicklistener
1 parent 80b1e03 commit 7014c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/sothree/slidinguppanel/SlidingUpPanelLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
910910
// Check if this was a click on the faded part of the screen, and fire off the listener if there is one.
911911
if (ady <= dragSlop
912912
&& adx <= dragSlop
913-
&& mSlideOffset >=0 && !isViewUnder(mSlideableView, (int) mInitialMotionX, (int) mInitialMotionY) && mFadeOnClickListener != null) {
913+
&& mSlideOffset > 0 && !isViewUnder(mSlideableView, (int) mInitialMotionX, (int) mInitialMotionY) && mFadeOnClickListener != null) {
914914
playSoundEffect(android.view.SoundEffectConstants.CLICK);
915915
mFadeOnClickListener.onClick(this);
916916
return true;

0 commit comments

Comments
 (0)