private boolean mModeChanged;
// If this scaling gesture should be ignored.
private boolean mIgnoreScalingGesture;
- // If we have seen a scaling gesture.
- private boolean mSeenScaling;
// whether the down action happened while the view is scrolling.
private boolean mDownInScrolling;
// If we should ignore all gestures other than onSingleTapUp.
@Override
public boolean onFling(float velocityX, float velocityY) {
if (mIgnoreSwipingGesture) return true;
- if (mSeenScaling) return true;
+ if (mModeChanged) return true;
if (swipeImages(velocityX, velocityY)) {
mIgnoreUpEvent = true;
} else {
// mode and at minimal scale.
mCanChangeMode = mFilmMode
|| mPositionController.isAtMinimalScale();
- mModeChanged = false;
- mSeenScaling = true;
mAccScale = 1f;
return true;
}
checkHideUndoBar(UNDO_BAR_TOUCHED);
mDeltaY = 0;
- mSeenScaling = false;
+ mModeChanged = false;
if (mIgnoreSwipingGesture) return;