Added support for flipping pages vertically.