Bug 162055 - Placing the text cursor with the mouse in BASIC IDE should behave in the same way as in Writer
Summary: Placing the text cursor with the mouse in BASIC IDE should behave in the same...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2024-07-16 08:21 UTC by Vas
Modified: 2025-03-05 11:35 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Cursor size difference (1.06 KB, image/png)
2024-11-06 14:50 UTC, Vas
Details
Cursor movement problem (4.43 MB, application/octet-stream)
2024-11-06 15:14 UTC, Vas
Details
Screencast Linux (137.76 KB, image/gif)
2025-03-05 07:15 UTC, Heiko Tietze
Details
Screencast Linux with zoom (1.20 MB, image/gif)
2025-03-05 08:39 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vas 2024-07-16 08:21:45 UTC
Description:
The cursor that is used in the IDE is not the same as the cursor used in the main LO environment in Writer. As such, cursor placement and looks differs to that of LO.

To place a cursor in the main LO environment, the mouse cursor only needs to be about half way past a character to be able to place it at the end of the character, whereas in the IDE, the mouse cursor has to be almost touching the next character in order to place it at the end of the last character. Also the cursor width is also wider than the main LO version. This make it frustrating when trying to place your cursor where you want it.

Steps to Reproduce:
1. Open the IDE with any text present.
2. Try to place the cursor at the end of a word or character

Actual Results:
The cursor operation differs in cursor placement to that of the main LO environment

Expected Results:
It behaves and looks the same as LO (e.g. Writer)


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 1 Roman Kuznetsov 2024-08-03 18:57:08 UTC
Could you attach some screenshots?
Comment 2 Vas 2024-11-06 14:50:24 UTC
Created attachment 197445 [details]
Cursor size difference

Image showing cursor size difference.
Comment 3 Vas 2024-11-06 15:11:03 UTC
I've attached an image showing the cursor difference. They are both the same word, one in LO Writer, the other in the Basic IDE. Zoom levels are both set to 100%. The Basic cursor (the lower one) is noticeably thicker.

As for the other issue with the cursor movement, it is easier to try yourself rather than me try and capture this. I'll try an upload an mp4 file of the problem if I can

1. Place your cursor at in a word
2. drag your mouse to the right and left click your mouse button every so often
3. Cursor does not move until the mouse cursor reaches the next character. this is different behaviour to LO Writer
Comment 4 Vas 2024-11-06 15:14:15 UTC
Created attachment 197446 [details]
Cursor movement problem

Mp4 video showing the problem with cursor movement
Comment 5 QA Administrators 2024-11-07 03:15:27 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2025-03-04 15:09:24 UTC
(In reply to Vas from comment #0)
> To place a cursor in the main LO environment, the mouse cursor only needs to
> be about half way past a character to be able to place it at the end of the
> character, whereas in the IDE, the mouse cursor has to be almost touching
> the next character in order to place it at the end of the last character.
> Also the cursor width is also wider than the main LO version. This make it
> frustrating when trying to place your cursor where you want it.

Let's ask the design team what they think. This seems like a very small detail.
Comment 7 Heiko Tietze 2025-03-05 07:15:46 UTC Comment hidden (no-value)
Comment 8 Buovjaga 2025-03-05 08:09:32 UTC Comment hidden (no-value)
Comment 9 Heiko Tietze 2025-03-05 08:39:58 UTC Comment hidden (no-value)
Comment 10 Buovjaga 2025-03-05 08:42:28 UTC
(In reply to Heiko Tietze from comment #9)
> Created attachment 199612 [details]
> Screencast Linux with zoom
> 
> I still don't see a difference. The mouse cursor in its text representation
> remains as it is whether in Writer or Basic and independent from the zoom.
> The caret (sometimes called text cursor) does change on zoom but follows the
> text height.

You are clicking in the wrong place in Writer.

1. Zoom in
2. Click a nanometer to the right of the center of a character

Result: the text cursor jumps to the right side of the character. Reporter wants the IDE to behave in the same, extra-sensitive way.
Comment 11 Heiko Tietze 2025-03-05 11:34:21 UTC
Now I got it. Consistency is desirable and I'd also prefer the precise Writer-method. Jonathan might have insights how to fix it.