Skip to content

fix(files): Prevent file list from jumping when selecting visible files#58087

Merged
nfebe merged 3 commits intomasterfrom
fix/54700/file-list-scroll-jump
Feb 6, 2026
Merged

fix(files): Prevent file list from jumping when selecting visible files#58087
nfebe merged 3 commits intomasterfrom
fix/54700/file-list-scroll-jump

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Feb 5, 2026

Skip scrolling when a file is clicked if it's already within the visible viewport, avoiding the confusing list jump behavior.

Fixes #54700

@nfebe nfebe requested review from a team and skjnldsv as code owners February 5, 2026 01:46
@nfebe nfebe requested review from CarlSchwan, sorbaugh, susnux and szaimen and removed request for a team February 5, 2026 01:46
@nfebe nfebe force-pushed the fix/54700/file-list-scroll-jump branch from 5c5ae62 to 4da404c Compare February 5, 2026 10:11
@nfebe nfebe requested a review from susnux February 5, 2026 10:11
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic seems fine, just not sure why we need the outer if here

@nfebe nfebe force-pushed the fix/54700/file-list-scroll-jump branch 2 times, most recently from 0563bcb to 61a5625 Compare February 5, 2026 13:04
@nfebe nfebe enabled auto-merge February 5, 2026 13:05
@nfebe nfebe force-pushed the fix/54700/file-list-scroll-jump branch from 61a5625 to a6991ca Compare February 5, 2026 14:41
@nfebe
Copy link
Contributor Author

nfebe commented Feb 5, 2026

/compile

@nfebe nfebe force-pushed the fix/54700/file-list-scroll-jump branch from ada68f0 to 221970c Compare February 6, 2026 05:26
@nfebe
Copy link
Contributor Author

nfebe commented Feb 6, 2026

/compile

nfebe added 2 commits February 6, 2026 12:47
Skip scrolling when a file is clicked if it's already within the
visible viewport, avoiding the confusing list jump behavior.

Fixes #54700

Signed-off-by: nfebe <fenn25.fn@gmail.com>
Adjust test assertions to match the new behavior where scrolling is
skipped for files already in the visible buffer. Tests now verify file
existence rather than full visibility for files within the buffer.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the fix/54700/file-list-scroll-jump branch from 7e3fc0e to b0bf531 Compare February 6, 2026 12:05
@nfebe
Copy link
Contributor Author

nfebe commented Feb 6, 2026

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe nfebe merged commit 3e25c28 into master Feb 6, 2026
147 of 152 checks passed
@nfebe nfebe deleted the fix/54700/file-list-scroll-jump branch February 6, 2026 15:15
@nfebe
Copy link
Contributor Author

nfebe commented Feb 6, 2026

/backport to stable33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: File list jumps after selecting it

4 participants