fix: prevent notification list overscrolling#1507
Merged
18202781743 merged 1 commit intolinuxdeepin:masterfrom Mar 17, 2026
Merged
fix: prevent notification list overscrolling#150718202781743 merged 1 commit intolinuxdeepin:masterfrom
18202781743 merged 1 commit intolinuxdeepin:masterfrom
Conversation
Added boundsBehavior: Flickable.StopAtBounds to the notification list view to prevent overscrolling beyond the content boundaries. This improves the user experience by providing more natural scrolling behavior and preventing the list from bouncing when reaching the edges. Log: Improved notification list scrolling behavior Influence: 1. Test scrolling to the top and bottom of the notification list 2. Verify that list stops at boundaries without overscrolling 3. Check that normal scrolling functionality remains intact 4. Test with various numbers of notifications (empty, few, many) 5. Verify behavior on different screen sizes and resolutions PMS: BUG-324863
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR adjusts the notification center ListView’s flick behavior so the notification list stops cleanly at its content bounds instead of overscrolling or bouncing at the edges. State diagram for notification ListView scrolling with StopAtBoundsstateDiagram-v2
title Notification_ListView_scrolling_behavior
[*] --> IdleAtTop
IdleAtTop --> ScrollingDown : user_drags_down
IdleAtTop --> ScrollingUpBlocked : user_drags_up_at_top
ScrollingDown --> IdleAtBottom : reached_bottom
ScrollingDown --> IdleAtTop : user_scrolls_back_to_top
ScrollingDown --> FlingDown : user_releases_while_moving_down
FlingDown --> IdleAtBottom : reaches_bottom_with_inertia
FlingDown --> IdleAtTop : inertia_carries_back_to_top
IdleAtBottom --> ScrollingUp : user_drags_up
IdleAtBottom --> ScrollingDownBlocked : user_drags_down_at_bottom
ScrollingUp --> IdleAtTop : reached_top
ScrollingUp --> IdleAtBottom : user_scrolls_back_to_bottom
ScrollingUp --> FlingUp : user_releases_while_moving_up
FlingUp --> IdleAtTop : reaches_top_with_inertia
FlingUp --> IdleAtBottom : inertia_carries_back_to_bottom
state ScrollingUpBlocked {
[*] --> AtTop
AtTop --> AtTop : further_drag_up
}
state ScrollingDownBlocked {
[*] --> AtBottom
AtBottom --> AtBottom : further_drag_down
}
note right of ScrollingUpBlocked
Overscroll_past_top_prevented
by_StopAtBounds
end note
note right of ScrollingDownBlocked
Overscroll_past_bottom_prevented
by_StopAtBounds
end note
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这段代码修改是在 QML 的 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结与建议这是一个合理且推荐的修改,能够提升通知中心列表的滚动手感,使其更加跟手和稳定。 改进建议: 示例代码: ListView {
// ... 其他属性
// 遵循 UI 设计规范,禁止列表滚动时的回弹效果,提供更硬朗的停止手感
boundsBehavior: Flickable.StopAtBounds
// ...
} |
18202781743
approved these changes
Mar 17, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, qxp930712 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added boundsBehavior: Flickable.StopAtBounds to the notification list view to prevent overscrolling beyond the content boundaries. This improves the user experience by providing more natural scrolling behavior and preventing the list from bouncing when reaching the edges.
Log: Improved notification list scrolling behavior
Influence:
PMS: BUG-324863
Summary by Sourcery
Bug Fixes: