--Drag

main.userInputService.InputChanged:Connect(function(input, pressedUI)
	if (input.UserInputType == dragInput or input.UserInputType == touchInput) and (not pressedUI or frameDragging) then
		if main.mouseDown then
			local distanceBetweenLastPos = (main.lastHitPosition - input.Position).magnitude
			if distanceBetweenLastPos < 150 or main.device ~= "Mobile" then --Prevent weird behavior with multiple touch inputs
				if frameDragging then
					dragFrame(input, frameDragging)
				end
				checkPressFunctions(input.Position)
			end
		end
	end
end)
