Set initialScroll = false in onDownMotionEvent()
This commit is contained in:
parent
6f8519e987
commit
98077a92ed
1 changed files with 3 additions and 7 deletions
|
@ -125,18 +125,14 @@ public class MapMultiSelectionMenuFragment extends Fragment implements MultiSele
|
|||
|
||||
@Override
|
||||
public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {
|
||||
if (scrollY <= minHeight) {
|
||||
if (initialScroll) {
|
||||
initialScroll = false;
|
||||
} else {
|
||||
dismissMenu();
|
||||
}
|
||||
if (scrollY <= minHeight && !initialScroll) {
|
||||
dismissMenu();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDownMotionEvent() {
|
||||
|
||||
initialScroll = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue