mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-10-29 11:49:33 +00:00
Fix transcripts jumping when close to bottom (#7985)
This commit is contained in:
parent
428d1901b4
commit
88e57cfb47
@ -213,6 +213,10 @@ public class TranscriptDialogFragment extends DialogFragment
|
||||
doInitialScroll = false;
|
||||
|
||||
boolean quickScroll = Math.abs(layoutManager.findFirstVisibleItemPosition() - pos) > 5;
|
||||
if (layoutManager.findFirstVisibleItemPosition() < pos - 1
|
||||
&& !viewBinding.transcriptList.canScrollVertically(1)) {
|
||||
return;
|
||||
}
|
||||
if (quickScroll) {
|
||||
viewBinding.transcriptList.scrollToPosition(pos - 1);
|
||||
// Additionally, smooth scroll, so that currently active segment is on top of screen
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user