better touch input for camera and resize logic for mobile