FGA icon indicating copy to clipboard operation
FGA copied to clipboard

Pop up scroll window cannot select third option

Open Taka499 opened this issue 4 months ago • 14 comments

Preparation

FGO server

JP

FGA build number

2991

Describe the bug

For the example in the recording, I am unable to select the third "優先" option. It simply returned to the top of the scroll window when touched.

Video

https://github.com/user-attachments/assets/c897e469-8819-4f58-939a-ab23ac919a36

Device model

Xiaomi Redmi K20 Pro

Android version

10

Screen size

1080 x 2340

RAM

12GB

Taka499 avatar Aug 27 '25 06:08 Taka499

Maybe this issue is as same as this issue 2092

Taka499 avatar Aug 27 '25 07:08 Taka499

I actually have this exact same problem on the phone I play FGO on too. It doesn't have this issue in the emulator.

Might just be phone model differences. The device I use is a Samsung S10+.

EDIT: Added a video as well. As you can see, it is actually impossible to click on the lower options because it jumps to the top after attempting to click.

https://github.com/user-attachments/assets/1acb0c33-642d-4707-880a-a956ce567a83

Vylantze avatar Sep 01 '25 01:09 Vylantze

This appears to be a LazyColumn issue.

Image

Doing this appears to be a workaround to the issue in my own device. However, it makes the scroll box really ugly in the android studio emulator. Also, it does not actually solve the original problem (since LazyColumn still resets the scroll state and scrolls back up).

I did try setting the content height manually, but even when it was perfect in the emulator, it looks too small on my S10+ (which is the same issue as the release build).

Vylantze avatar Sep 01 '25 03:09 Vylantze

if you are going to fix this here's the answer

Just use AlertDialog with box and inside the box is the lazyColumn.

ArthurKun21 avatar Sep 01 '25 05:09 ArthurKun21

You seem to be more familiar with it, so I'll leave it to you. I don't mind testing after a build has been made.

Vylantze avatar Sep 01 '25 07:09 Vylantze

lots of my PRs still aren't getting merged.

And this one is simple enough for bug fix practice if anyone wants to fix it

ArthurKun21 avatar Sep 01 '25 07:09 ArthurKun21

Sure. I'll take it up then, since I have a device to test it on.

Vylantze avatar Sep 01 '25 07:09 Vylantze

It appears that this LazyColumn is already nested inside another set of structures which is finally already in a ThemeDialog. I am not familiar enough with the environment to figure it out just based on what you said, unfortunately.

I'll go back to my other task.

Vylantze avatar Sep 01 '25 16:09 Vylantze

@Taka499 Try downloading https://github.com/Fate-Grand-Automata/FGA/pull/2104#issuecomment-3248000463 and see if your issue is fixed.

Image

Vylantze avatar Sep 03 '25 07:09 Vylantze

@Vylantze Thank you for the fix! I just noticed the reply and found the link is already unavailable. Does the fix applied in the newest release?

Taka499 avatar Oct 14 '25 06:10 Taka499

@Taka499 Try downloading it again.

It is not available in the newest release because this fix is not the ideal fix. But, if it works, we can work towards something that is more appropriate.

Vylantze avatar Oct 14 '25 12:10 Vylantze

@Vylantze There's no more scrolling window on my device now.

Image

Taka499 avatar Oct 14 '25 14:10 Taka499

Version from comment #2104 is not available anymore. Is it over, the fix won't be included in new versions?

Image

TryStranic avatar Dec 04 '25 09:12 TryStranic

@TryStranic The fix isn't a proper solution and some menus are still failing to be clicked on in the specific devices. I have rerun the build, so you can try downloading again.

If for some reason it no longer works, or the link is no longer valid, my recommendation is the following:

  • Make a new setup from scratch. Most of the time, the default is what you want to change back to.
  • Use an emulator/another device to edit the settings, export them and then re-import them into your main device.

PS: I will also additionally link it here as a release from my own repository (since I have no permissions to upload to this repository). For those worried, it should be reliable because I'm the one who made the patch for the pull request in the first place.

Vylantze avatar Dec 04 '25 13:12 Vylantze

I've decided to merge the temporary fix for now

reconman avatar Dec 22 '25 19:12 reconman