Don't generate unnecessary events when orientation is unchanged #3894