Here is a fix to make turn page up and down more consistent when panning with zoom to content width and page mode disabled. Say you pan right. Then you click > till the bottom of the page is reached and a page turn happens: the new page is again zoomed to content, which is just fine. But now do the same and click < instead, till the top of the page is reached and the previous one is shown: not only zoom is still manual but the viewport is at the top of the new page (instead of bottom). This behavior is utterly inconsistent with the previous one. It can be fixed changing:
Quote:
elseif self.globalzoom_mode == self.ZOOM_FIT_TO_CONTENT_WIDTH_PAN
|
by
Quote:
elseif self.globalzoom_mode == self.ZOOM_FIT_TO_CONTENT_WIDTH_PAN or
self.last_globalzoom_mode == self.ZOOM_FIT_TO_CONTENT_WIDTH_PAN
|
in UniReader:setzoom. In fact I think the entire condition could be replaced by self.content_top == -2012.