Fixed web view zoom

pull/147/head
M66B 6 years ago
parent 89cefc86c2
commit 30e7bc4ec4

@ -1326,17 +1326,18 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override
public boolean onTouch(View v, MotionEvent me) {
if (me.getPointerCount() == 2) {
ConstraintLayout cl = (ConstraintLayout) itemView;
switch (me.getAction()) {
case MotionEvent.ACTION_DOWN:
v.getParent().requestDisallowInterceptTouchEvent(true);
cl.requestDisallowInterceptTouchEvent(true);
break;
case MotionEvent.ACTION_MOVE:
v.getParent().requestDisallowInterceptTouchEvent(true);
cl.requestDisallowInterceptTouchEvent(true);
break;
case MotionEvent.ACTION_UP:
v.getParent().requestDisallowInterceptTouchEvent(false);
cl.requestDisallowInterceptTouchEvent(false);
break;
}
}

Loading…
Cancel
Save