Single finger pan web view

pull/178/head
M66B 5 years ago
parent 09850aa309
commit a4731b984f

@ -2624,8 +2624,17 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} else } else
return false; return false;
} else { } else {
if (view.getId() == R.id.tvBody)
view.getParent().requestDisallowInterceptTouchEvent(false); view.getParent().requestDisallowInterceptTouchEvent(false);
return (view.getId() == R.id.wvBody && ev.getAction() == MotionEvent.ACTION_MOVE); 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;
} }
} }

Loading…
Cancel
Save