2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

some photo viewer fixes

This commit is contained in:
John Preston
2014-08-17 11:37:24 +04:00
parent 0a69ed37da
commit c6423c0b65
4 changed files with 17 additions and 10 deletions

View File

@@ -733,6 +733,7 @@ int32 OverviewWidget::lastScrollTop() const {
void OverviewWidget::animShow(const QPixmap &bgAnimCache, const QPixmap &bgAnimTopBarCache, bool back, int32 lastScrollTop) {
_bgAnimCache = bgAnimCache;
_bgAnimTopBarCache = bgAnimTopBarCache;
resizeEvent(0);
_scroll.scrollToY(lastScrollTop < 0 ? (type() == OverviewPhotos ? 0 : _scroll.scrollTopMax()) : lastScrollTop);
_animCache = myGrab(this, rect());
App::main()->topBar()->stopAnim();