mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 10:39:25 +00:00
Added fling fail-safe
This commit is contained in:
parent
46ad2f4fa0
commit
d4fe78781d
1 changed files with 11 additions and 2 deletions
|
@ -2427,8 +2427,17 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
@Override
|
||||
public void onOverScrolled(int scrollX, int scrollY, int dx, int dy, boolean clampedX, boolean clampedY) {
|
||||
if (clampedY && ((WebViewEx) wvBody).isZoomedY())
|
||||
rv.fling(dx * 10, dy * 10);
|
||||
if (clampedY && ((WebViewEx) wvBody).isZoomedY()) {
|
||||
boolean flinged = false;
|
||||
try {
|
||||
if (rv != null)
|
||||
flinged = rv.fling(dx * 10, dy * 10);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
if (!flinged)
|
||||
properties.scrollBy(dx, dy);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue