Fix wipe and slide transition incorrect behavior on resize, and incorrectly detecting "reverse" state