Remove event listeners when rotating