Skip to content

fix(scrollbar): prevent cursor flicker with CSS-based auto-hide ursor flicker#617

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
pengfeixx:fix-scrollbar-auto-hide
May 18, 2026
Merged

fix(scrollbar): prevent cursor flicker with CSS-based auto-hide ursor flicker#617
deepin-bot[bot] merged 1 commit into
linuxdeepin:masterfrom
pengfeixx:fix-scrollbar-auto-hide

Conversation

@pengfeixx

Copy link
Copy Markdown
Contributor

Replace react-custom-scrollbars autoHide prop with CSS variable opacity control. CSS transitions only trigger repaint, avoiding reflow-induced cursor flicker.

使用CSS变量opacity控制滚动条显隐,替代react-custom-scrollbars的autoHide属性。 CSS过渡仅触发重绘,避免回流导致的光标闪烁。

Log: 使用CSS变量替换JS autoHide修复滚动条光标闪烁
PMS: BUG-359981
Influence: 滚动条自动隐藏改为CSS方案,解决鼠标悬停时光标闪烁问题,不影响滚动条功能。

@pengfeixx

Copy link
Copy Markdown
Contributor Author

/retest

@deepin-bot

deepin-bot Bot commented May 14, 2026

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 6.5.50
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #618

…ursor flicker

Replace react-custom-scrollbars autoHide prop with CSS variable opacity
control. CSS transitions only trigger repaint, avoiding reflow-induced
cursor flicker.

使用CSS变量opacity控制滚动条显隐,替代react-custom-scrollbars的autoHide属性。
CSS过渡仅触发重绘,避免回流导致的光标闪烁。

Log: 使用CSS变量替换JS autoHide修复滚动条光标闪烁
PMS: BUG-359981
Influence: 滚动条自动隐藏改为CSS方案,解决鼠标悬停时光标闪烁问题,不影响滚动条功能。
@pengfeixx pengfeixx force-pushed the fix-scrollbar-auto-hide branch from 630b02d to 8226772 Compare May 18, 2026 01:28
@deepin-ci-robot

Copy link
Copy Markdown

deepin pr auto review

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lzwind, pengfeixx

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pengfeixx

Copy link
Copy Markdown
Contributor Author

/merge

@deepin-bot deepin-bot Bot merged commit 7f3e887 into linuxdeepin:master May 18, 2026
18 checks passed
@pengfeixx pengfeixx deleted the fix-scrollbar-auto-hide branch May 18, 2026 02:03
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.

3 participants