[Libreoffice-ux-advise] [PATCH] Mouse centered zooming concept

Tim Hardeck thardeck at suse.de
Fri Mar 16 12:28:27 PDT 2012


Hi,

this patch integrates mouse centered zooming. There is a tolerance
area in the center where the direction isn't changed during zooming.
Outside of it the position of the mouse is used to zoom in this
direction.

This is a just a concept patch for review by ux-advise not for submit.

By default the direction during zoom out is reversed to get back near
the starting point.

I have also added cursor centered zooming for Writer because it was the
only LO application with an unintuitive zooming behavior.
So if mouse centered zooming is disabled (in the concept just set
bMouseCenteredZooming to false) the cursor is used as the center
instead of the upper left corner.

Mouse centered zooming should work in Calc, Draw, Impress and Writer but
the code is still messy.
If it is Ok this way I try to clean it up and reduce redundancy.

We should also discuss how big the center area is supposed to be, if it
should be different for some LO application and how fast the location
should be shifted during zooming.

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-concept.patch
Type: text/x-patch
Size: 23912 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice-ux-advise/attachments/20120316/7a7eb759/attachment.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-ux-advise/attachments/20120316/7a7eb759/attachment.pgp>


More information about the Libreoffice-ux-advise mailing list