local s=pcall(function()local s=UserInputService.TouchTapInWorld end)local function U(s)if GestureArea and not GestureAreaManagedByControlScript then if s then GestureArea.Size=UDim2.new(1,0,.6,0)GestureArea.Position=UDim2.new(0,0,0,0)else GestureArea.Size=UDim2.new(1,0,.5,-18)GestureArea.Position=UDim2.new(0,0,0,0)end end end
--todo: remove this once TouchTapInWorld is on all platforms
local touchWorkspaceEventEnabled = pcall(function()
	local test = UserInputService.TouchTapInWorld
end)

local function layoutGestureArea(portraitMode)
	if GestureArea and not GestureAreaManagedByControlScript then
		if portraitMode then
			GestureArea.Size = UDim2.new(1, 0, 0.6, 0)
			GestureArea.Position = UDim2.new(0, 0, 0, 0)
		else
			GestureArea.Size = UDim2.new(1, 0, 0.5, -18)
			GestureArea.Position = UDim2.new(0, 0, 0, 0)
		end
	end
end
