Closed Bug 1833845 Opened 2 years ago Closed 2 years ago

Deleting a message frequently scrolls the message list, placing newly selected message at the bottom of the pane

Categories

(Thunderbird :: Folder and Message Lists, defect, P1)

Thunderbird 114

Tracking

(thunderbird_esr102 unaffected, thunderbird114+ fixed)

VERIFIED FIXED
115 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird114 + fixed

People

(Reporter: wsmwk, Assigned: leftmostcat)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

114.0b3

Deleting a message now can cause a scroll of the message list, such that the newly selected message is placed at the bottom of the pane. Happens about 3/4 of the time.

Also, perhaps unrelated, folder switch now sometimes scrolls message list to the top of the list.

Another symptom, deleting last message in a folder scrolls message list to the top.

It would be good to find the cause of the regression.
I have not tested nightly.

Flags: needinfo?(geoff)
Flags: needinfo?(bugzilla2007)

If I delete the last message in a folder, it scrolls to the top and then back to the bottom instantly, causing a refresh.

I'm guessing that's what's happening here.

This doesn't happen nearly as often when deleting messages further up the list, but I can reproduce that too with enough trials.

This is on Nightly.

Sean, if this isn't related to the message list performance work feel free to unassign or redirect.

Assignee: nobody → leftmostcat
Status: NEW → ASSIGNED
Flags: needinfo?(geoff)
Flags: needinfo?(bugzilla2007)

There's also another issue, that might be related and a symptom of the same problem.
STR:

  • Select an open thread or many messages in the middle of the list.
  • Delete or archive them (any action that removes them from the list will do).
  • The selection moves to the next message correctly, but the message list scrolls down, making the currently selected message reach the bottom of the visible viewport.

This seems to happen a bit inconsistently.

I'm sure this is a bit tricky, but we should try to keep the selection in the original position if the user is interacting in the middle of the list.

Not dataloss, but delete activity is super common for the average user and so this bad placement will happen many times per day.
I think we will want this fixed before the beta appeal next week.

Severity: S3 → S2
Summary: Deleting a message scrolls the message list, placing newly selected message at the bottom of the pane → Deleting a message frequently scrolls the message list, placing newly selected message at the bottom of the pane

A change I made while attempting to standardize scroll calculations caused the scroll position to be lost when the tree is invalidated, such as during a deletion. This meant that when we responded to the new selection, we would have to scroll the item back into view.

(In reply to Sean Burke [:leftmostcat] from comment #6)

This meant that when we responded to the new selection, we would have to scroll the item back into view.

Makes sense. Thanks for checking it. Will test daily this weekend after it lands, and it's an easy decision to then take it to Monday's beta.

Regressed by: 1830979
Target Milestone: --- → 115 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/88344e3f7c7d
Don't reset scroll position when tree table is invalidated. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Thank again. I can confirm this works on nightly.

Status: RESOLVED → VERIFIED

Comment on attachment 9335051 [details]
Bug 1833845 - Don't reset scroll position when tree table is invalidated. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

Attachment #9335051 - Flags: approval-comm-beta+
Duplicate of this bug: 1834170
Duplicate of this bug: 1834277
Blocks: 1835173
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: