-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Inventory items unresponsive after tab interaction until LMB click on formspec #14250
Comments
Same issue on 5.9.0-dev-025516a with SDL Irrlicht device |
So that's what that is! I've noticed trouble with picking things up sometimes in 5.8.0. Exile uses tabs all over the place, and yes, when I've clicked a tab, I can't interact with anything until I've clicked the formspec again first. |
I assume the issue came together with android controls change |
I did a quick text and confirmed that this regression was introduced by 252c79d / #13146. @OgelGames do you have an idea for a fix? |
The problem is that the tab interaction eats the up event (for the tab switching itself) so GUIFormSpecMenu:OnEvent never sees it and thinks the button is still down (m_held_mouse_button remains set), effectively ignoring the following button down events until the next up event resynchronizes the internal state to reality. One could relax the m_held_mouse_button != BET_OTHER condition a bit to allow processing down events of the allegedly held button (indicating that the up event somehow got lost), or prevent the up even from getting lost, or never even set m_held_mouse_button in the !s.valid() cases at all, or something else:-) |
Minetest version
Active renderer
OpenGL 4.6
Irrlicht device
X11
Operating system and version
Archlinux current
CPU model
AMD Ryzen 5 5600
GPU model
AMD Radeon RX 570 4GB
OpenGL version
4.6
Summary
After interacting with tabheader(switching tab or even clicking on current tab), you can't interact with inventory items until you click LMB anywhere on the formspec(except tabheader).
Video with mouse events overlay provided
TabheaderBug.webm
Steps to reproduce
list[]
andtabheader[]
elements (e.g.sfinv
).The text was updated successfully, but these errors were encountered: