Bug 37601 - zoom in to selected object or text cursor
Summary: zoom in to selected object or text cursor
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
3.4.0 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Zoom
  Show dependency treegraph
 
Reported: 2011-05-25 13:10 UTC by Vitaliy Lotorev
Modified: 2021-04-06 16:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaliy Lotorev 2011-05-25 13:10:06 UTC
currently zooming algorithm in Writer/Draw/Impress inconsistent and different:
in following examples zoom out performed with Ctrl+mouse_scroll_down, zoom in - Ctrl+mouse_scroll_up
Writer:
  zooming in seems to be 'stateless': it always zooms in to the very first page. It doesn't takes into account where text cursor is set or where mouse cursor is pointing. Most modern programs with ability of zooming (CADs,EDAs, map viewers, MS Word) zoom to currently editing text or to mouse cursor.
  Example: create 100 pages of random text, set text cursor to the middle of document(e.g page#50), currently we can see half of the page #50, now zoom+out to 20% and zoom in back - now we can see page#1, not page #50. 
  Yes, after hitting any arrow on keyboard view will return to text cursor (i.e page#50) but it's inconvenient and disattracts attention.

Impress, Draw:
   zoom in always to center of page.
   Example: start edit Text/rectangle by double-clicking on it or select any object, zoom in, now user sees center of page and has to search for text cursor/selected object with horizontal/vertical scrollbars which is extremely inconvenient.

Enhancement suggestion:
In Writer/Impress/Draw zoom in to currently selected objects (in case a group of objects selected - to center of the group) or text cursor.
Comment 1 Rainer Bielefeld Retired 2011-06-10 02:58:40 UTC
RC2 is bit by bit identical with release version, so separate items in the version picker are useless. Changes have been discussed with Michael Meeks.
Comment 2 Björn Michaelsen 2011-12-23 12:07:59 UTC Comment hidden (obsolete)
Comment 3 Vitaliy Lotorev 2012-02-23 12:34:29 UTC
libreoffice 3.5, this issue isn't fixed
Comment 4 A (Andy) 2014-08-02 11:04:41 UTC
First Issue: Zooming in Writer

for me this is partly not reproducible with LO 4.3.0.4 (Win 8.1):
If I zoom in and out it stays on the cursor' page and does not switch to the first page, but the zooming focus is not on the cursor position, this means if you zoom out the cursor is not in the middle of the screen, which results in that you see more following pages, but not the preceding pages


Second Issue; Zooming in Draw

still that way reproducible with LO 4.3.0.4 (Win 8.1)


I think to solve this would be a good enhancement.
Comment 5 Rodolfo 2015-02-02 05:35:06 UTC
@vlotorev, isn't better zoom in/out using mouse cursor point as reference instead of selected objects?
I can do that.
Comment 6 Vitaliy Lotorev 2015-02-15 21:18:39 UTC
@Rodolfo, that would be great.

Please, note there is already such a bug: https://bugs.documentfoundation.org/show_bug.cgi?id=53224

Also there is a closed bug https://bugs.documentfoundation.org/show_bug.cgi?id=83588 (I didn't get into it) which shows that different devs have different opinions whether 'zooming to center' bug or not.
Comment 7 Heiko Tietze 2021-04-06 15:42:13 UTC
In Writer, zoom takes the current view. Meaning you are on p1 and see the top left edge it will remain visible, if your top left edge is in the middle of the page this will stay. All independent from the cursor position.

Draw/Impress use coordinates rather than lines and zoom keeps the cursor position stable. This makes perfect sense to me, not sure how it was 10 years ago.
Comment 8 Vitaliy Lotorev 2021-04-06 16:34:57 UTC
Checked on LibreOffice 6.4.6.2:

* Writer - zooms in to selected text or where text cursor is (not mouse cursor).
* Draw - zooms in to mouse cursor.

Current behaviour totally matches to requested one.