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

Airplane dashboard mouse control #3216

Closed
CuriousMike56 opened this issue Jan 21, 2025 · 2 comments · Fixed by #3224
Closed

Airplane dashboard mouse control #3216

CuriousMike56 opened this issue Jan 21, 2025 · 2 comments · Fixed by #3224

Comments

@CuriousMike56
Copy link
Member

The mouse is no longer able to interact with the airplane dashboard. This has been an issue for a few months now, unsure of the offending commit.

@ohlidalp
Copy link
Member

My prime suspect: d10cb2a

@ohlidalp
Copy link
Member

ohlidalp commented Jan 29, 2025

I found the problem: wrong viewport dimensions used when calculating relative mouse position to query for overlay element. Broken in #3184 as I suspected. Before that, we queried both mouse position and viewport dimensions directly from OIS. I had to change that because of OIS bug, and now the dimension values are not updated correctly

I'll try to make a future-proof solution with #2983 in mind.

EDIT: I ended up doing a minimum viable solution :)

ohlidalp added a commit to ohlidalp/rigs-of-rods that referenced this issue Jan 29, 2025
_problem: _
wrong viewport dimensions used when calculating relative mouse position to query for overlay element.
Broken in RigsOfRods#3184. Before that, we queried both mouse position and viewport dimensions directly from OIS.
I had to change that because of OIS bug, and now the dimension values are not updated correctly.

_solution:_
Minimum viable fix - just keep the same dummy OIS event, just update the viewport dimensions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants