You need to sign in or sign up before continuing.
未验证 提交 76cdc343 编写于 作者: O openharmony_ci 提交者: Gitee

!8370 【OpenHarmony开源贡献者计划2022】LongPressGesture 中代码示例中注释缺少空格

Merge pull request !8370 from solanightxie/master
......@@ -53,11 +53,11 @@ struct LongPressGestureExample {
.height(200).width(300).padding(60).border({ width:1 }).margin(30)
.gesture(
LongPressGesture({ repeat: true })
//长按动作存在会连续触发
// 长按动作存在会连续触发
.onAction((event: GestureEvent) => {
if (event.repeat) { this.count++ }
})
//长按动作一结束触发
// 长按动作一结束触发
.onActionEnd(() => {
this.count = 0
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册