Skip to content

fix(ripple): 修复列表第一次点击时不显示涟漪的问题以及滚动时仍然保持涟漪的问题 - #6709

Merged
Glavo merged 7 commits into
HMCL-dev:mainfrom
ToobLac:fix/6703
Sep 2, 2026
Merged

fix(ripple): 修复列表第一次点击时不显示涟漪的问题以及滚动时仍然保持涟漪的问题#6709
Glavo merged 7 commits into
HMCL-dev:mainfrom
ToobLac:fix/6703

Conversation

@ToobLac

@ToobLac ToobLac commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Fixes #6703

@ToobLac
ToobLac marked this pull request as draft August 18, 2026 13:27
@github-actions github-actions Bot added the 10+ label Aug 18, 2026
@ToobLac
ToobLac marked this pull request as ready for review August 18, 2026 14:01
@github-actions github-actions Bot removed the 10+ label Aug 18, 2026
@ToobLac ToobLac changed the title fix(ripple): 修复部分地方第一次点击时不显示涟漪的问题以及滚动时仍然保持涟漪的问题 fix(ripple): 修复列表第一次点击时不显示涟漪的问题以及滚动时仍然保持涟漪的问题 Aug 18, 2026
@github-actions github-actions Bot added the 40+ label Aug 18, 2026
@Glavo

Glavo commented Aug 19, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 385afa8aab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/main/JavaManagementPage.java Outdated
@Glavo

Glavo commented Aug 24, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eff4084ff2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java Outdated

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🤖 Static analysis found the following issues (max count 10):

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java
@ToobLac
ToobLac marked this pull request as draft August 25, 2026 07:14
@ToobLac
ToobLac marked this pull request as ready for review August 25, 2026 15:37
@Glavo

Glavo commented Aug 26, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0a697e752

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Override
protected void updateItem(T item, boolean empty) {
cellRippler.releaseRippleImmediately();
T oldItem = getItem();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include index changes when clearing recycled-cell ripples

When the backing list contains the same object reference at multiple positions, a virtualized cell can be reassigned from one occurrence to another while oldItem == item and the empty state remains unchanged. This condition then skips releaseRippleImmediately(), allowing the pressed ripple to follow the recycled cell during scrolling; include the previous/current index in the change check so reassignment is still detected.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

我不认为这是应该更改的

@Glavo
Glavo merged commit 2e01874 into HMCL-dev:main Sep 2, 2026
3 checks passed
@ToobLac
ToobLac deleted the fix/6703 branch September 3, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 第一次点击列表项可能不会触发涟漪效果 & 滚动后仍然保留状态

2 participants