Quenty
(Quenty)
August 10, 2015, 2:42pm
#1
When hovering right below the black bar, the mouse.X and mouse.Y read to ignore the offset created by the topbar. This is nonstandard behavior and is not replicated in-game.
However, once you click, the mouse X and mouse Y will revert to standard behavior. As soon as you move the mouse again, it stops.
See this github bug report for more information.
opened 02:10PM - 10 Aug 15 UTC
Studio
bug
When hovering right below the black bar, the mouse.X and mouse.Y read to ignore … the offset created by the topbar. This is **nonstandard behavior** and is **not** replicated in-game.
However, once you click, the mouse X and mouse Y will revert to standard behavior. As soon as you move the mouse again, it stops.

_An example of the nonstandard behavior, where mouse.Y is ignoring the top-bar offset_
This only happens in studio, and is inconsistent with what happens online.
Repro place attached.
woot3
(Woot)
August 10, 2015, 3:32pm
#2
I suggested a solution for bugs such as this created by the top bar a while back, but it didn’t really pick up. Now is perhaps a good time to bring it back. Documentation - Roblox Creator Hub
Tomarty
(Tomarty)
August 10, 2015, 11:11pm
#3
I’m pretty sure this also applies to InputChanged and InputBegan
Using the Mouse, MouseEntered, and the UserInputService, I made a repro place here.
Quenty
(Quenty)
August 11, 2015, 12:04am
#5
I can verify that the .Position aspect of InputObjects are indeed affected too. This is making behavior quite annoying to debug.
Silent137
(Silent137)
August 11, 2015, 5:37pm
#6
This is certainly an unusual behavior, and I agree, one of them is probably wrong!
Tomarty
(Tomarty)
August 11, 2015, 7:20pm
#7
Should the mouse be in screen coordinates, or GUI coordinates? There are use-cases for each one
EchoReaper
(EchoReaper)
August 11, 2015, 7:22pm
#8
The mouse has to be in screen coordinates or else calculations involving the camera+mouse will be off.
I have a fix for inconsistency for the mouse object in studio in relation to windows/mac client.
Are you saying that input objects from UserInputService are also inconsistent in studio? I will try this now.
Quenty
(Quenty)
August 12, 2015, 8:01pm
#10
[quote] I have a fix for inconsistency for the mouse object in studio in relation to windows/mac client.
Are you saying that input objects from UserInputService are also inconsistent in studio? I will try this now. [/quote]
Thank you Ben. <3
To answer your question: Yes. InputObject.Position also reports the same inconsistency.
CodeWriter
(CodeWriter)
August 13, 2015, 6:10pm
#11
Ok, I’ve submitted a fix for the issue in Studio with UserInputService and InputObject. It should be released in two weeks baring any issues discovered in testing.
Quenty
(Quenty)
August 13, 2015, 6:54pm
#12
Thanks! I appreciate it.
Can you give us a status update on the related Mouse.X and Mouse.Y bug?
Thanks! I appreciate it.
Can you give us a status update on the related Mouse.X and Mouse.Y bug?[/quote]
It turns out its the same bug, so it should all be fixed.