mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 01:53:25 +02:00
Scroll list on overscolling web view
This commit is contained in:
@@ -1907,6 +1907,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
properties.setPosition(message.id, new Pair<Integer, Integer>(scrollX, scrollY));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) {
|
||||
if (clampedY) {
|
||||
int dy = context.getResources().getDisplayMetrics().heightPixels / 50;
|
||||
properties.scrollBy(0, scrollY == 0 ? -dy : dy);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOpenLink(String url) {
|
||||
if (parentFragment == null)
|
||||
@@ -5760,6 +5768,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
|
||||
void scrollTo(int pos, int y);
|
||||
|
||||
void scrollBy(int x, int y);
|
||||
|
||||
void move(long id, String type);
|
||||
|
||||
void reply(TupleMessageEx message, String selected, View anchor);
|
||||
|
||||
Reference in New Issue
Block a user