[PATCH] Mouse centered zooming
Tim Hardeck
thardeck at suse.de
Thu Apr 12 12:35:49 PDT 2012
Hi,
this patch integrates mouse centered zooming which means that the
position of the mouse is used as a target during zooming. So the screen
position is shifted in the direction of the pointer.
If the mouse is near the center (currently 20% to each side) the
focus isn't changed.
During zoom out the direction is reversed to get back near the starting
point. This is disabled for Calc since it doesn't focus the center but
instead keeps the upper left cell where it is so reversing the zoom
direction feels not intuitive.
To have the same behavior in Calc as in all other LO applications the
slashes in front of "bZoomIn = false" in sc/source/ui/view/tabview.cxx
have to be removed.
Except of Writer only the the mouse wheel scrolling is affected by this
patch.
The zooming behavior of Writer was changed to focus the screen
center instead of the upper left corner.
It was suggested that there shouldn't be an option for this new zooming
behavior so there is none.
Regards
Tim
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix
Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
T: +49 (0) 911 74053-0 F: +49 (0) 911 74053-483
http://www.suse.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Mouse-centered-zooming.patch
Type: text/x-patch
Size: 19874 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120412/a38406bd/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120412/a38406bd/attachment-0001.pgp>
More information about the LibreOffice
mailing list