-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Secondary controls] Scrolling bug when opening links at the top of the description of a video #5453
Comments
@Stypox Unfortunately, no. See screencast below attached as a ZIP file: |
I don't know how to fix this. Android seems to like moving views around when giving focus to them (even though they are already visible), and I don't know how we could prevent that. @vkay94 do you have any idea how this could be solved? I found this SO but wasn't able to find a good solution (i.e. I could disable automatic scrolling when tapping on links but then selecting would not work) |
@Stypox I'll take a look into it (I have to look into the implementation first) Edit: My investigation results in the following (based on the dev branch): Just to make sure: the behavior that the description tab scrolls on focus request (tapping somewhere, not necessarily on links) is intended? The reason for this scrolling is the recreation of the So it is enough to increase the value to 2: But there is a small other bug then: |
@vkay94 this also happens when the description is the first tab that shows up when opening a video |
Perfect timing :') So it isn't intentional (I was focussing on the tab switch). To fix it (scrolling on tap) you just have to add Edit: Or not ... let me see again. I'll ping you when I find a workaround for both xD |
Does this other apk from ci in #5460 fix the issue? |
@Stypox No, it doesn't but there is a change: when clicking the description tab, the description view doesn't scroll to the top of the screen. However, clicking on a link scrolls the description view to top of the screen. |
@TiA4f8R then I can't reproduce |
@TiA4f8R I pushed another commit to #5460, could you test it when it gets built? I tried with something else |
@Stypox Same result as the previous :( |
Ok, so I tried to investigate this a little bit more. It seems like this is not a bug in NewPipe's code, but in how things are implemented in Android. When text in a |
@TiA4f8R Could you confirm that this APK fixes the scrolling bug (even though it does not allow selecting, and tapping links does not show the white background underneath)? |
@Stypox Yes |
Since now selection is disabled by default, this fixes TeamNewPipe#5453
Since now selection is disabled by default, this fixes TeamNewPipe#5453
Since now selection is disabled by default, this fixes TeamNewPipe#5453
Since now selection is disabled by default, this fixes TeamNewPipe#5453
Checklist
Steps to reproduce the bug
Actual behavior
Description is scrolling, without opening the link sometimes.
Expected behavior
Description links just open without scrolling. This bug isn't present on 0.20.9 release.
Screenshots/Screen recordings
Screencast.Links.description.secondary.controls.mp4
If the description tab is the default tab before opening a content (after an app start), the description view scrolls a little bit, like in this screen recording:
Screencast.Secondary.controls.second.bug.mp4
Device info
The text was updated successfully, but these errors were encountered: