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

widgets.getMouseLocation Returning Incorrect Values #54

Closed
TheyCallMeRyan opened this issue Jun 27, 2024 · 1 comment · Fixed by #55
Closed

widgets.getMouseLocation Returning Incorrect Values #54

TheyCallMeRyan opened this issue Jun 27, 2024 · 1 comment · Fixed by #55
Labels
bug Something isn't working

Comments

@TheyCallMeRyan
Copy link
Contributor

TheyCallMeRyan commented Jun 27, 2024

It looks like GuiService doesn't immediately return the correct value for GetGuiInset. Because of this, the MouseLocation is always wrong for the isPosInsideRect checks in Menu / Window / Combo if you loaded too soon. In my case this leads to Menus never functioning as I consistently load too early in studio.

image
image

@TheyCallMeRyan TheyCallMeRyan changed the title widgets.isPosInsideRect Returning Incorrect Values widgets.getMouseLocation Returning Incorrect Values Jun 27, 2024
@SirMallard
Copy link
Owner

Should be merged now, thanks for finding and fixing this.

@SirMallard SirMallard added the bug Something isn't working label Jul 5, 2024
@SirMallard SirMallard linked a pull request Jul 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants