Bug 160674 - Paste on the position where context menu opened, instead of the original position
Summary: Paste on the position where context menu opened, instead of the original posi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+ Master
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Draw-UX
  Show dependency treegraph
 
Reported: 2024-04-15 17:47 UTC by Telesto
Modified: 2024-04-16 20:03 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 Telesto 2024-04-15 17:47:12 UTC
Description:
ENHANCEMENT: Paste pasting on the position where context menu opened, instead of pasting the object on top of the source image.

Steps to Reproduce:
1. Open Draw
2. Draw a rectangle
3. Right Click -> Copy
4. Click on some empty space -> Context menu -> Paste

Actual Results:
Pastes on top of the source image

Expected Results:
Pastes the objected on the designated area. So mouse pointer where the context menu is invoked




Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 748561425774fa40ab685fed80d113f7e8301158
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 1 Telesto 2024-04-15 17:49:40 UTC
So desired is similar to the Calc behaviour
1. Open Calc
2. Draw a rectangle
3. Copy it
4. Select some different cell, paste
Comment 2 Telesto 2024-04-15 17:55:13 UTC
@Heiko
This one appears to be 'so obvious' to me, that I suspect some reason why it's lacking..
Comment 3 Heiko Tietze 2024-04-16 08:33:25 UTC
Maybe because most users copy/paste with shortcuts? But no objection from my side to take the position information, if available. I guess you expect the source object's center to be on the target position - easy for simple objects but quickly a challenge. So perhaps just top/left?
Comment 4 m_a_riosv 2024-04-16 17:47:21 UTC
+1
Comment 5 Telesto 2024-04-16 20:03:53 UTC
(In reply to Heiko Tietze from comment #3)
> Maybe because most users copy/paste with shortcuts? 
I would use CTRL+C/ CTRL+V. But I have hard time to predict the outcome. The context menu part is actually something I use as fails safe. If CTRL+V doesn't deliver, maybe context menu does. 

I lack of clear idea how CTRL+V should function. Paste is defined by caret in Writer. By a cell in Calc. But where the paste on empty canvas? Right Click context menu has clear coordinates (in my mental model). In case of CTRL+V I have no idea what should be used. Nothing (current behaviour). The current mouse position? Or should a double left click on page add some temporal anchor which can be used reference: paste here [however again a gimmick/ requiring documentation. Not some natural state] 

* In a A3 page with zoom level 250% copy an image of the top right corner to the clipboasrd (CTRL+C).. Scroll to right bottom of the page CTRL+V nothing happens. I use context menu -> Paste. Agh... [Confusing feedback]

* Say I want to replace an image. I copy ImageA. Select ImageB. Press CTRL+V. ImageB gets deselected. ImageA selected. ImageB being unchanged. There is Context Menu -> Replace. However that requires a external file (not possible from clipboard). I still have no clue how to replace an image using the clipboard. Spoken about: internal consistency within same the suite :-). Makes the learning curve rather bumpy ride. Accompanied with lots of frustration

* In writer select object a + CTRL+C + CTRL+V results in no change (so say: source image overwritten by copy). Draw has different view on the matter, actually stacking copy's on top of source object. I likely unintendedly created duplicates which did go unnoticed.

* With CTRL+V creating a duplicate, I still have to drag the object to the proper place. The copy is surely not intended to be on the same spot as the source. I can't control where CTRL+V pastes. It would nice if LEFT+MOUSE CLICK  + CTRL+V or something like that would mean: paste here. 

---------------------------------------------------------------
>But no objection from my
> side to take the position information, if available. I guess you expect the
> source object's center to be on the target position - easy for simple
> objects but quickly a challenge. So perhaps just top/left?

I have quite a hard time understanding this. Do you mean to say: the right click x/y coordinates should be interpreted as the the top/left of the to be pasted object (shape/image). In that case, I tend to say yes.