未验证 提交 0d0cc47a 编写于 作者: 雷震 提交者: Gitee

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

Signed-off-by: Nzhenleif <zhenleif@isoftstone.com>
上级 d9721707
...@@ -62,7 +62,7 @@ struct SwipeGestureExample { ...@@ -62,7 +62,7 @@ struct SwipeGestureExample {
.width(260).height(260) .width(260).height(260)
.rotate({x: 0, y: 0, z: 1, angle: this.rotateAngle}) .rotate({x: 0, y: 0, z: 1, angle: this.rotateAngle})
.gesture( .gesture(
SwipeGesture({fingers: 1, direction:SwipeDirection.Vertical}) SwipeGesture({fingers: 1, direction: SwipeDirection.Vertical})
.onAction((event: GestureEvent) => { .onAction((event: GestureEvent) => {
this.speed = event.speed this.speed = event.speed
this.rotateAngle = event.angle this.rotateAngle = event.angle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册