Adds rotate event. Fixes #454.