Bug 163495 - Difficult/impossible to edit glue point at some points on edge of bounding box
Summary: Difficult/impossible to edit glue point at some points on edge of bounding box
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
24.8.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shape-Points
  Show dependency treegraph
 
Reported: 2024-10-17 18:10 UTC by Eyal Rozenberg
Modified: 2024-10-18 13:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A duplicated shape with two glue-points; one shape is selected (4.96 KB, image/png)
2024-10-18 08:13 UTC, Eyal Rozenberg
Details
Screencast (14.91 KB, image/gif)
2024-10-18 08:38 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-10-17 18:10:42 UTC
If you move a glue point to the center of one of the four edges of your shape's bounding-box, and perhaps to one of the corners - it will from there on be covered by the shape's resizing handles. It then becomes difficult, or perhaps even impossible, to select that glue point and move it elsewhere or delete it.

There needs to be some way to make the resizing handles disappear at least temporaririly to enable glue point selection from under them.
Comment 1 Regina Henschel 2024-10-17 20:17:54 UTC
Yes, selecting of glue points needs to be improved.

Other solutions besides
 (1) hiding the resize-handles
could be
 (2) making the gluepoint larger
or
 (3) draw the gluepoint in front of the resize-handle not behind.

I like the idea (1).
Comment 2 Eyal Rozenberg 2024-10-18 07:04:23 UTC
(In reply to Regina Henschel from comment #1)

So, while I like the hide-size-handles idea, I think that drawing the glue point a bit larger might be the easier solution, because it would not require changes to anywhere else in the code; and if one is concerned about precision in the glue-point drawing - one can always zoom in a bit.

Drawing over the resizing handles would also be ok I guess, as one can always exit the glue point edit mode and resize.
Comment 3 Telesto 2024-10-18 07:10:16 UTC
Related topic, in the sense of resizing handles position being a problem at bug 162851, with different suggested solution
Comment 4 Heiko Tietze 2024-10-18 07:37:10 UTC
The shape/object handles become hidden if the focus leaves the object, and if Gluepoint functions are toggled on, the gluepoints are still visible - yet not clickable without activating. We could make the .uno:GlueEditMode a hard-toggle and prevent any object selection if enabled.

The issue is rather that additional points on these positions are difficult to access. But it is possible (the gluepoint area seems to be a pixel larger than the handle).

Sounds to me like much work for less benefit. And I disagree with an extra function to disable the object handles. My take: NAB/WF
Comment 5 Eyal Rozenberg 2024-10-18 08:12:17 UTC
(In reply to Heiko Tietze from comment #4)
> The shape/object handles become hidden if the focus leaves the object, and
> if Gluepoint functions are toggled on, the gluepoints are still visible

Yes, but that's not the point of this bug.

Also, when one is editing glue points, the object is selected, and we don't want the user to have to deselect then re-select to check whether there are glue points.

> yet not clickable without activating. We could make the .uno:GlueEditMode a
> hard-toggle and prevent any object selection if enabled.

That is likely irrelevant, since the glue points are added to the selected object; no selection - what are the glue points of?

> The issue is rather that additional points on these positions are difficult
> to access. But it is possible (the gluepoint area seems to be a pixel larger
> than the handle).

Nope. The glue points are (sometimes? often? always?) completely covered by the resize handle. At least with build:

Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: threaded

will attach a screenshot.
Comment 6 Eyal Rozenberg 2024-10-18 08:13:09 UTC
Created attachment 197126 [details]
A duplicated shape with two glue-points; one shape is selected

Note how the top-center resize handle completely covers the glue point of the top rectangle shape.
Comment 7 Eyal Rozenberg 2024-10-18 08:13:50 UTC
The coverage of glue-points does not seem to be affected by zooming in or out.
Comment 8 Heiko Tietze 2024-10-18 08:38:21 UTC
Created attachment 197127 [details]
Screencast

Difficult: yes, impossible: no.
Comment 9 Eyal Rozenberg 2024-10-18 12:43:26 UTC
(In reply to Heiko Tietze from comment #8)
> Created attachment 197127 [details]
> Screencast
> 
> Difficult: yes, impossible: no.

Saw the screencast - you have to guess that the glue point is there, and if you carefully play with the cursor then indeed maybe you can touch the point. I wasn't able to reproduce this. Perhaps it's because I was using the center rather than a corner? Anyway, it's beyond the abilities of mortals.