openharmony 鸿蒙 capi-arkui-nativemodule-arkui-coastingaxisevent

2026-08-25 浏览 (1)

ArkUI_CoastingAxisEvent

typedef struct ArkUI_CoastingAxisEvent ArkUI_CoastingAxisEvent

Overview

Defines the coasting axis event.

When the user performs a two-finger swipe on the touchpad, the system constructs a swipe event based on the finger lift speed, following a specific attenuation curve. You can listen for this event to handle the flick effect immediately after processing regular axis events.

This event is only dispatched if two conditions are met: 1. The user executes a two-finger swipe on the touchpad. 2. A component registered for the NODE_ON_COASTING_AXIS_EVENT event (via registerNodeEvent) exists at the pointer's position.

Since: 22

Related module: ArkUI_EventModule

Header file: ui_input_event.h

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 arkts-apis-uicontext-contextmenucontroller

openharmony 鸿蒙 errorcode-canvas

openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent

openharmony 鸿蒙 errorcode-bindSheet

openharmony 鸿蒙 js-apis-arkui-uiExtension-sys

openharmony 鸿蒙 capi-arkui-accessibility-arkui-accessibilityeventinfo

openharmony 鸿蒙 capi-arkui-rendernodeutils

openharmony 鸿蒙 js-apis-arkui-node

openharmony 鸿蒙 capi-native-node-h

openharmony 鸿蒙 capi-arkui-nativemodule-arkui-listitemswipeactionitem

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/JUCZtDVt