SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

Content stop responding in specific condition

Open mitenj opened this issue 10 years ago • 0 comments

Hi, In following scenario, content of component are stop working.

  1. Open side menu.
  2. Slides finger diagonally from main content (small strip on screen) to side menu. Make sure that it does not cause to close the menu.
  3. press system back button.
  4. main content will stop responding.

After debugging the code, we found is: endDrag() function is not called, which causes the problem.

To fix the issue, we made following changes. If anyone can review and validate the fix, that will be helpful.

In customviewabove.java file, in onTouchEvent() function, I added following code: " final int action = ev.getAction(); if (!mIsBeingDragged && !thisTouchAllowed(ev)) { if((action & MotionEventCompat.ACTION_MASK) == MotionEvent.ACTION_UP) { if (mQuickReturn) { endDrag(); } } return false; } "

mitenj avatar Sep 03 '15 20:09 mitenj