Player camera: cursor gets stuck when hitting shift & holding shift prevents camera panning

This behavior just started recently (within the last day or two). It seems unintentional and is quite frustrating as it conflicts with the common keybind of LShift to sprint.

Repro 1:

  1. Hold right mouse button (pan camera)
  2. Hold left shift
  3. Release right mouse button
  4. Release left shift
  5. Cursor is locked in place & panning

Repro 2:

  1. Hold shift
  2. Try to pan camera (hold right mouse button)
  3. Cannot pan camera

Note: this is happening with ShiftLock behavior DISABLED

10 Likes

Thanks for the report. We’ve only been able to reproduce this in Studio - does this match up with what you’re seeing?

1 Like

Yeah, I discovered the issue in studio. Haven’t had it happen in a live game.

I’ve been having this issue as well.

My test case doesn’t involve any of the default player scripts and it only happens in Studio.


EDIT:

I can repro the shift-blocking behavior in an empty starter place with this:

--[[
	script = Instance.new("LocalScript")
	script.Name = "CameraScript"
	script.Parent = game.StarterPlayer.StarterPlayerScripts
]]

local userInput = game:GetService("UserInputService")

userInput.InputBegan:Connect(function(input, sunk)
	if sunk then
		return
	end
	
	if input.UserInputType == Enum.UserInputType.MouseButton2 then
		userInput.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition
	end	
end)

userInput.InputEnded:Connect(function(input, sunk)
	if input.UserInputType == Enum.UserInputType.MouseButton2 then
		userInput.MouseBehavior = Enum.MouseBehavior.Default
	end	
end)
  • right clicks with no shift presses properly fire InputBegan and InputEnded
  • pressing shift (left or right) totally blocks InputBegan and InputEnded from firing

We’ve identified the problem; a fix will be issued on Monday.

5 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.