Bug 101282 - Alt arrow keys single pixel movement of selected objects stopped working (high resolution display..)
Summary: Alt arrow keys single pixel movement of selected objects stopped working (hig...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.2.0.3 rc
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: HiDPI
  Show dependency treegraph
 
Reported: 2016-08-03 21:12 UTC by brian.bj.parker99
Modified: 2023-03-19 09:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Draw alt arrow keys do not shift selected rectangle (193.73 KB, application/zip)
2016-08-05 03:06 UTC, brian.bj.parker99
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brian.bj.parker99 2016-08-03 21:12:26 UTC
In Draw in OS X Alt+arrow keys would move the selected object by one pixel (compared with the default movement of multiple pixels). This worked in earlier versions but in the later versions this stopped working. In particular, it does not work in LO Version: 5.2.0.4 but actually stopped working several versions ago.

Moving by a larger amount with shift+arrow keys still works.

The key combination is documented at https://help.libreoffice.org/Common/General_Shortcut_Keys_in

This is an essential operation for precise drawing operations and so should be re-enabled.
Comment 1 Alex Thurgood 2016-08-04 08:39:49 UTC
Tested on 

Version: 5.1.4.2
Build ID: f99d75f39f1c57ebdd7ffc5f42867c12031db97a
CPU Threads: 2; OS Version: Mac OS X 10.11.6; UI Render: default; 
Locale: fr-FR (fr.UTF-8)

1) Open new Draw document.
2) Insert a star from the list of pre-defined objects.
3) The star is inserted onto the page and pre-selected (green handle borders)
4) Alt-right arrow moves the object either 0,06cm or 0,07cm each time (it varies with each step).
5) Default grid (Preferences - LibreOffice Draw - Grid) is 1cm by 1cm with 10 subdivisions H/V).

Also tested on
Version: 5.3.0.0.alpha0+
Build ID: 66fc20335348ec195237c711edca821d8771439c
CPU Threads: 2; OS Version: Mac OS X 10.11.6; UI Render: default; 
Locale: fr-FR (fr.UTF-8); Calc: group

Repeated all steps from above, exactly same behaviour - WFM, no repro

@Brian : please provide more detailed instructions like I have above so that we can be sure we're doing this the same way as you are. Also provide your Draw grid resolution settings, and an example document where the problem illustrates itself for us to test.

Setting NEEDINFO pending requested information. Once provided, please set back to UNCONFIRMED.
Comment 2 Heiko Tietze 2016-08-04 09:33:17 UTC
How much an object is moved when Alt is being pressed depends on the zoom factor. Try with 20 vs 200%. 

Moving objects by 1px might be too small at large drawings, in case of high resolution displays, and for most use cases.
Comment 3 brian.bj.parker99 2016-08-05 03:06:18 UTC
Created attachment 126604 [details]
Draw alt arrow keys do not shift selected rectangle

Draw document and screen shot of draw preferences attached.
Comment 4 brian.bj.parker99 2016-08-05 03:07:34 UTC
alt arrow keys do not move selected object. Example draw file and screenshot attached.
Comment 5 brian.bj.parker99 2016-08-05 03:13:57 UTC
(In reply to Alex Thurgood from comment #1)
> Tested on 
> 
> Version: 5.1.4.2
> Build ID: f99d75f39f1c57ebdd7ffc5f42867c12031db97a
> CPU Threads: 2; OS Version: Mac OS X 10.11.6; UI Render: default; 
> Locale: fr-FR (fr.UTF-8)
> 
> 1) Open new Draw document.
> 2) Insert a star from the list of pre-defined objects.
> 3) The star is inserted onto the page and pre-selected (green handle borders)
> 4) Alt-right arrow moves the object either 0,06cm or 0,07cm each time (it
> varies with each step).
> 5) Default grid (Preferences - LibreOffice Draw - Grid) is 1cm by 1cm with
> 10 subdivisions H/V).
> 
> Also tested on
> Version: 5.3.0.0.alpha0+
> Build ID: 66fc20335348ec195237c711edca821d8771439c
> CPU Threads: 2; OS Version: Mac OS X 10.11.6; UI Render: default; 
> Locale: fr-FR (fr.UTF-8); Calc: group
> 
> Repeated all steps from above, exactly same behaviour - WFM, no repro
> 
> @Brian : please provide more detailed instructions like I have above so that
> we can be sure we're doing this the same way as you are. Also provide your
> Draw grid resolution settings, and an example document where the problem
> illustrates itself for us to test.
> 
> Setting NEEDINFO pending requested information. Once provided, please set
> back to UNCONFIRMED.

Tested as above (except rectangle added).
Alt arrows do not move selected rectangle at all. Arrow keys move it 0.1 cm. Shift arrow keys move it 1 cm. Grid set to 1cm by 1cm 10 subdivisions (see attached screenshot).  
The documentation states that alt arrow should move by 1 pixel. I believe that was previously the case when I used LO Draw to edit pdfs. Certainly being able to zoom in and move by 1 pixel is very useful for fine positioning of objects.

LO version  5.2.0.4. OSX 10.11.6  MacBook Pro (Retina, 15-inch, Late 2013)
Comment 6 Heiko Tietze 2016-08-05 07:33:52 UTC
Zoom factor 25%
alt+cursor: 5.04, 5.14, 5.25, 5.35, 5.46 cm
cursor: 5.04, 5.14, 5.24, 5.34
shift+cursor: 5.04, 6.04, 7.04

Zoom factor 250%
alt+cursor: 5.04, 5.05, 5.06, 5.07, 5.08 cm
cursor: 5.04, 5.14, 5.24, 5.34
shift+cursor: 5.04, 6.04, 7.04

WORKSFORME as designed
Comment 7 brian.bj.parker99 2016-08-05 12:06:48 UTC
(In reply to Heiko Tietze from comment #6)
> Zoom factor 25%
> alt+cursor: 5.04, 5.14, 5.25, 5.35, 5.46 cm
> cursor: 5.04, 5.14, 5.24, 5.34
> shift+cursor: 5.04, 6.04, 7.04
> 
> Zoom factor 250%
> alt+cursor: 5.04, 5.05, 5.06, 5.07, 5.08 cm
> cursor: 5.04, 5.14, 5.24, 5.34
> shift+cursor: 5.04, 6.04, 7.04
> 
> WORKSFORME as designed

I also tried at zoom factors 25% and 250% and similarly saw 1cm shift with shift+cursor and 0.1 cm shift for cursor  but 0 shift for alt+cursor.


LO version  5.2.0.4. OSX 10.11.6  MacBook Pro (Retina, 15-inch, Late 2013)
Comment 8 Heiko Tietze 2016-08-05 12:41:03 UTC
So it seems to be an issue of the high resolution display.
Comment 9 Cor Nouws 2016-08-06 00:46:49 UTC
maybe clarify the summary a bit ?
Comment 10 Heiko Tietze 2016-08-06 07:59:44 UTC
(In reply to Cor Nouws from comment #9)
> maybe clarify the summary a bit ?

You can move objects on the drawing using the arrow keys. Various options exists, and the issue here is related to alt+arrow. On all tested systems (Linux here, old MacOS without highres display someone else) the object move (depending on zoom factor) but not for the OP.
Comment 11 QA Administrators 2017-10-28 17:47:02 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2019-12-03 13:51:20 UTC Comment hidden (obsolete)
Comment 13 eisa01 2020-02-16 00:29:54 UTC
Ok, so left right seems to work fine, but up down moves more than one pixel

So this has greatly improved?

MBP 13" Retina 2015

Version: 7.0.0.0.alpha0+
Build ID: 0cb4f304abf6f8dd6b40eb800788d2fe80581813
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 14 QA Administrators 2022-02-18 03:41:45 UTC Comment hidden (obsolete)
Comment 15 eisa01 2023-03-19 09:12:59 UTC
This seems fine to me now, both left right and up down seem to move the same amount

Version: 7.5.1.2 (AARCH64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 10; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded