Skip to content

Commit fb50428

Browse files
committed
Enable menu toggle when sliding is disabled
mEnabled is used to check if mContent receives dragging events, shoud not be used to stop actions.  if mEnabled is checked in scrollTo(int,int) method, side menu can still be called out by SlidingMenu.showMenu(), but the menu would be blank.
1 parent 29d40b6 commit fb50428

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/src/com/slidingmenu/lib/CustomViewAbove.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,7 @@ private void determineDrag(MotionEvent ev) {
803803
public void scrollTo(int x, int y) {
804804
super.scrollTo(x, y);
805805
mScrollX = x;
806-
if (mEnabled)
807-
mViewBehind.scrollBehindTo(mContent, x, y);
806+
mViewBehind.scrollBehindTo(mContent, x, y);
808807
((SlidingMenu)getParent()).manageLayers(getPercentOpen());
809808
}
810809

0 commit comments

Comments
 (0)