1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Revert "Single finger pan web view"

This reverts commit a4731b984f.
This commit is contained in:
M66B 2020-05-29 09:41:13 +02:00
parent 3093503590
commit 898dc1f6a7

View file

@ -2623,17 +2623,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} else
return false;
} else {
if (view.getId() == R.id.tvBody)
view.getParent().requestDisallowInterceptTouchEvent(false);
else {
boolean xm = view.canScrollHorizontally(-1);
boolean xp = view.canScrollHorizontally(1);
boolean ym = view.canScrollVertically(-1);
boolean yp = view.canScrollVertically(1);
boolean zoomed = (xm || xp || ym || yp);
view.getParent().requestDisallowInterceptTouchEvent(zoomed);
}
return false;
view.getParent().requestDisallowInterceptTouchEvent(false);
return (view.getId() == R.id.wvBody && ev.getAction() == MotionEvent.ACTION_MOVE);
}
}