mirror of https://github.com/M66B/FairEmail.git
Fixed scroll in 3-col mode
This commit is contained in:
parent
59027f63ae
commit
c1efe7a9b3
|
@ -23,6 +23,7 @@ import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
|
import android.graphics.Rect;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
|
@ -76,6 +77,12 @@ public class DrawerLayoutEx extends DrawerLayout {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onInterceptTouchEvent(final MotionEvent ev) {
|
public boolean onInterceptTouchEvent(final MotionEvent ev) {
|
||||||
return (!isLocked() && super.onInterceptTouchEvent(ev));
|
if (isLocked()) {
|
||||||
|
Rect rect = new Rect();
|
||||||
|
getChildAt(1).getHitRect(rect);
|
||||||
|
if (!rect.contains((int) ev.getX(), (int) ev.getY()))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.onInterceptTouchEvent(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue