未验证 提交 debe0250 编写于 作者: S solanightxie 提交者: Gitee

update zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures-longpressgesture.md.

Signed-off-by: Nsolanightxie <1025011831@qq.com>
https://gitee.com/openharmony/docs/issues/I5NEGYSigned-off-by: Nsolanightxie <1025011831@qq.com>
上级 33c9c19a
......@@ -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.
先完成此消息的编辑!
想要评论请 注册