Bug 148664 - EDITING: Inserting comment and scrolling the document does not focus back to the comment after start of typing
Summary: EDITING: Inserting comment and scrolling the document does not focus back to ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
: 148667 (view as bug list)
Depends on:
Blocks: Writer-Comments
  Show dependency treegraph
 
Reported: 2022-04-19 08:41 UTC by Orwel
Modified: 2023-03-27 13:16 UTC (History)
4 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 Orwel 2022-04-19 08:41:12 UTC
Description:
If you insert a comment and scroll the document (with the mouse wheel) before entering the text into the comment, after start of typing the document become not focused to the comment, so you do not see, if or what are you typing.

Steps to Reproduce:
1. Open an empty document
2. Write some text to more pages
3. Focus on text on some page on the end of the document and insert a comment
4. Scroll up with mouse wheel to the previous pages (or top of the document) so you do not see the comment.
5. Start typing,

Actual Results:
The document is still focused on the last position you have scrolled to with the mouse wheel.

Expected Results:
The document view should be focused back to the comment where the cursor is. 


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
I do not know, if the actual result is intended, but if you have a huge document(e. g. more than 10 pages), and you want to check/look at some text of the document, when you are writing the comment, typing again into the comment makes you fuzzy as you do not know, where exactly are you typing. If there are also many comments, it takes really much time to find the right one.
Comment 1 Orwel 2022-04-19 09:16:29 UTC
May be this bug is also connected with Bug 148667 I have posted.
Comment 2 Telesto 2022-04-19 09:29:44 UTC
Confirm
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4659fc2f0a7223a89446edff0b77e58758b5edf5
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 Jumbo

ok with
Version: 7.2.1.0.0+ (x64) / LibreOffice Community
Build ID: 8fdbb8aed1b48734a717d5f98ada566de7204605
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
Comment 3 Telesto 2022-04-19 09:31:18 UTC
*** Bug 148667 has been marked as a duplicate of this bug. ***
Comment 4 raal 2022-04-19 16:51:04 UTC
This seems to have begun at the below commit.
Adding Cc: to Bayram Çiçek; Could you possibly take a look at this one?
Thanks
 1f2d454a34ea1c77ceda8bcf547de4ac2e5a5f6c is the first bad commit
commit 1f2d454a34ea1c77ceda8bcf547de4ac2e5a5f6c
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Aug 20 11:20:28 2021 +0200

    source 4bb59cd1f45133994d3d13642367470f528094f4

tdf#91519: prevent jump to top of the comment view
Comment 5 Telesto 2022-04-19 17:28:40 UTC
Note: bug 148667 is a - similar - but distinct issue. It might be that separate fix being needed..
Comment 6 Bayram Çiçek 2022-04-24 02:21:24 UTC
(In reply to raal from comment #4)
> Adding Cc: to Bayram Çiçek; Could you possibly take a look at this one?

I'll look into it asap. Thanks.