steffenh created this revision. Herald added a project: Okular. Herald added a subscriber: okular-devel. steffenh requested review of this revision.
REVISION SUMMARY remove unused variable remove qDebug and unused code correct some code style hold zoom center middle mouse click an moving Rework the newScroll calcutation rework newScroll calculation because d->zoomFactor contain not the exact zoom factor. use the center point before and after zooming to calculate the zoom factor. clean code change typos increase precision of the calculation double -> long double better rounding from qreal to int vor code cleaning add recenter if contunuirlicher zoom adjust for scrollbar appearance adjust for more than on page in viewport reduce rounding errors befor code cleaning * if zooming call delayedResizEvent direct and not after 200ms * adjust for apparent and disapparent scrollbars depended of scrollbar setting befor code cleaning * add hold zoom center methode to mouse midbutton zoom * lock mouse coursor position for mouse midbutton zoom code cleanup code cleaning change prognosis of scrollbar appear and disappear add GestureCanceled correct same spelling corect same code style chnage viewport update corect some codestyle stop qscroller REPOSITORY R223 Okular BRANCH holdZoomCenter REVISION DETAIL https://phabricator.kde.org/D25627 AFFECTED FILES ui/pageview.cpp ui/pageview.h To: steffenh Cc: okular-devel, johnzh, andisa, siddharthmanthan, maguirre, fbampaloukas, joaonetto, kezik, tfella, ngraham, darcyshen, aacid