fixed bug where getTotalRotation would not give correct value when rotation turned off but device rotated