I put this code

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

while true do
	--I reference a TextLabel that I made for testing purposes
	script.Parent.ScreenGui.TextLabel.Text = mouse.X .. ", " .. mouse.Y
	wait(0.03)
end

into a LocalScript and went fullscreen. When I move my mouse along the top and left edges, the TextLabel is updated with new information whenever I move my mouse. However, on the bottom and right edges, it is only updated when I move my mouse into the actual "screen."

Here's a published game with the same code as above:

https://www.roblox.com/games/5422871626/Panning-Camera

Is this a glitch? Is there anyway to fix this?

(PS: I'm on Windows 10.0.18363 Build 18363)