Skip to content

Commit

Permalink
Enable menu toggle when sliding is disabled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
liruqi committed Mar 18, 2013
1 parent 29d40b6 commit fb50428
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/src/com/slidingmenu/lib/CustomViewAbove.java
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,7 @@ private void determineDrag(MotionEvent ev) {
public void scrollTo(int x, int y) {
super.scrollTo(x, y);
mScrollX = x;
if (mEnabled)
mViewBehind.scrollBehindTo(mContent, x, y);
mViewBehind.scrollBehindTo(mContent, x, y);
((SlidingMenu)getParent()).manageLayers(getPercentOpen());
}

Expand Down

0 comments on commit fb50428

Please sign in to comment.