corrected device rotation behaviour