The event should be 'mozorientationchange'
https://developer.mozilla.org/en-US/docs/Web/Reference/Events/orientationchange