mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 18:26:20 +00:00
Fixed web view zoom
This commit is contained in:
parent
89cefc86c2
commit
30e7bc4ec4
1 changed files with 4 additions and 3 deletions
|
@ -1326,17 +1326,18 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouch(View v, MotionEvent me) {
|
public boolean onTouch(View v, MotionEvent me) {
|
||||||
if (me.getPointerCount() == 2) {
|
if (me.getPointerCount() == 2) {
|
||||||
|
ConstraintLayout cl = (ConstraintLayout) itemView;
|
||||||
switch (me.getAction()) {
|
switch (me.getAction()) {
|
||||||
case MotionEvent.ACTION_DOWN:
|
case MotionEvent.ACTION_DOWN:
|
||||||
v.getParent().requestDisallowInterceptTouchEvent(true);
|
cl.requestDisallowInterceptTouchEvent(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MotionEvent.ACTION_MOVE:
|
case MotionEvent.ACTION_MOVE:
|
||||||
v.getParent().requestDisallowInterceptTouchEvent(true);
|
cl.requestDisallowInterceptTouchEvent(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MotionEvent.ACTION_UP:
|
case MotionEvent.ACTION_UP:
|
||||||
v.getParent().requestDisallowInterceptTouchEvent(false);
|
cl.requestDisallowInterceptTouchEvent(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue