Skip to content
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

TouchScreenGUI: Shootline isn't updated when the finger doesn't move #14188

Closed
sotha1 opened this issue Dec 30, 2023 · 5 comments · Fixed by #14087
Closed

TouchScreenGUI: Shootline isn't updated when the finger doesn't move #14188

sotha1 opened this issue Dec 30, 2023 · 5 comments · Fixed by #14087
Labels
Android Bug Issues that were confirmed to be a bug @ Client / Controls / Input

Comments

@sotha1
Copy link

sotha1 commented Dec 30, 2023

2023_12_30_11_34_25_trim_00-02_00-30.mp4

when i hold my finger to broke the stones, after more than 5 blocks of the same type, minetest stops and i have to hold again

@SmallJoker SmallJoker transferred this issue from minetest/minetest_game Dec 30, 2023
@SmallJoker
Copy link
Member

SmallJoker commented Dec 30, 2023

Assumption: the shooting line (or rather its start position) is not updated as long the mouse button (or here: finger) is held down.

@SmallJoker SmallJoker added Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible Android labels Dec 30, 2023
@grorp
Copy link
Member

grorp commented Dec 30, 2023

Assumption: the shooting line (or rather its start position) is not updated as long the mouse button (or here: finger) is held down.

Yes, that's indeed the problem. The shootline is only updated when you move your finger, not when the player moves.

A fix for this bug is included in #14087 because I had to rewrite the relevant code anyway. I can make a separate PR just for the bugfix if you want.

@grorp grorp added Bug Issues that were confirmed to be a bug @ Client / Controls / Input and removed Unconfirmed bug Bug report that has not been confirmed to exist/be reproducible labels Dec 30, 2023
@grorp grorp changed the title minetest android game bugs when you broke more than 5 blocks of the same type TouchScreenGUI: Shootline isn't updated when the finger doesn' Dec 30, 2023
@grorp grorp changed the title TouchScreenGUI: Shootline isn't updated when the finger doesn' TouchScreenGUI: Shootline isn't updated when the finger doesn't move Dec 30, 2023
@sotha1
Copy link
Author

sotha1 commented Jan 1, 2024

Assumption: the shooting line (or rather its start position) is not updated as long the mouse button (or here: finger) is held down.

Yes, that's indeed the problem. The shootline is only updated when you move your finger, not when the player moves.

A fix for this bug is included in #14087 because I had to rewrite the relevant code anyway. I can make a separate PR just for the bugfix if you want.

it will make the game more playable for me, so yes

@SmallJoker
Copy link
Member

A fix for this bug is included in #14087 because I had to rewrite the relevant code anyway. I can make a separate PR just for the bugfix if you want.

@grorp If you don't mind - I would prefer to have a fix in a separate PR so that it doesn't get lost (e.g. due to revert) and can be merged independently.

@grorp
Copy link
Member

grorp commented Jan 6, 2024

@SmallJoker I tested creating a separate bugfix commit/PR. It resulted in many conflicts with #14087, which is ready to merge, and the code will be removed by #14087 anyway. I think it's not worth it. Would you be okay with merging #14087 as is, including the bugfix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Bug Issues that were confirmed to be a bug @ Client / Controls / Input
Projects
None yet
3 participants