fix: fix the issue where multiple applications remain selected after …#774
fix: fix the issue where multiple applications remain selected after …#774MyLeeJiEun wants to merge 1 commit into
Conversation
|
Hi @MyLeeJiEun. Thanks for your PR. 😃 |
|
Hi @MyLeeJiEun. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefactors item interaction handling in launcher list views by introducing explicit pressed/hovered interaction properties on ItemBackground and wiring them to mouse and hover handlers, fixing a bug where multiple apps remained visually selected after consecutive long-presses. Sequence diagram for launcher item press and hover interaction handlingsequenceDiagram
actor User
participant MouseArea
participant HoverHandler
participant ItemBackground
User->>MouseArea: press
MouseArea->>MouseArea: mouseArea.pressed = true
MouseArea->>ItemBackground: interactionPressed = mouseArea.pressed
ItemBackground->>ItemBackground: isActive()
User->>MouseArea: release
MouseArea->>MouseArea: mouseArea.pressed = false
MouseArea->>ItemBackground: interactionPressed = mouseArea.pressed
ItemBackground->>ItemBackground: isActive()
User->>HoverHandler: move_pointer
HoverHandler->>HoverHandler: itemHoverHandler.hovered = true
HoverHandler->>ItemBackground: interactionHovered = itemHoverHandler.hovered
ItemBackground->>ItemBackground: isActive()
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…long-pressing the launcher 1. Add interactionPressed and interactionHovered properties to ItemBackground 2. Use HoverHandler for explicit mouse hover detection in list views 3. Replace direct ColorSelector state check with controlled interaction properties 4. Apply consistent interaction state binding in AppListView and FreeSortListView Log: Fix multiple apps incorrectly staying in selected state after consecutive long presses fix: 修复启动器长按多个应用后多个应用保持选中状态 1. 为 ItemBackground 添加 interactionPressed 和 interactionHovered 属性 2. 使用 HoverHandler 显式检测鼠标悬停状态 3. 用可控的交互属性替代直接检查 ColorSelector 状态 4. 在 AppListView 和 FreeSortListView 中统一绑定交互状态 Log: 修复启动器长按多个应用后多个应用错误保持选中状态的问题 PMS: BUG-364529
2892544 to
2b26132
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, MyLeeJiEun The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…long-pressing the launcher
Log: Fix multiple apps incorrectly staying in selected state after consecutive long presses
fix: 修复启动器长按多个应用后多个应用保持选中状态
Log: 修复启动器长按多个应用后多个应用错误保持选中状态的问题
PMS: BUG-364529
Summary by Sourcery
Ensure launcher app items update selection state correctly on pointer interactions in windowed views.
Bug Fixes:
Enhancements: