Skip to content

Commit 1648006

Browse files
committed
feat: add tap handler to hide launcher
1. Add TapHandler to GridViewContainer to hide launcher when tapped 2. This provides better user experience by allowing users to dismiss the launcher with a simple tap 3. The handler sets LauncherController.visible to false when any area within the grid view is tapped 4. Improves navigation flow by giving users intuitive way to close the launcher interface feat: 添加点击处理器以隐藏启动器 1. 在 GridViewContainer 中添加 TapHandler 以便点击时隐藏启动器 2. 通过允许用户简单点击即可关闭启动器来提供更好的用户体验 3. 当网格视图内的任何区域被点击时,处理器将 LauncherController.visible 设置为 false 4. 通过为用户提供直观的关闭启动器界面方式来改进导航流程 PMS: BUG-324421
1 parent 80d6f79 commit 1648006

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

qml/GridViewContainer.qml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ FocusScope {
108108
}
109109
cellHeight: item.cellHeight
110110
cellWidth: item.cellWidth
111+
TapHandler {
112+
onTapped:
113+
LauncherController.visible = false
114+
}
111115

112116
highlight: Item {
113117
FocusBoxBorder {

0 commit comments

Comments
 (0)