Disable pager scrolling during 2 finger gestures.
This commit is contained in:
parent
32fbbf2b55
commit
084e806c25
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,7 @@ import android.content.Context;
|
|||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
|
@ -176,4 +177,10 @@ public class ZoomingImageView extends FrameLayout {
|
|||
return new AttachmentRegionDecoder();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onInterceptTouchEvent(MotionEvent event) {
|
||||
getParent().requestDisallowInterceptTouchEvent(event.getPointerCount() > 1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue