D25627: hold the zoomcenter under the mouse / pinch center
Steffen Hartleib
noreply at phabricator.kde.org
Sat Nov 30 14:29:23 GMT 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20191130/f249a8ea/attachment.html>
More information about the Okular-devel
mailing list