harmony 鸿蒙Interaction Event Overview
Interaction Event Overview
There are three types of events based on how they are triggered: touchscreen events, keyboard and mouse events, focus events, and drag events.
Touchscreen event: an event triggered by an operation (with a finger or a stylus) on the touchscreen.
Keyboard and mouse event: an event triggered by an operation on a peripheral mouse device, touchpad, or keyboard.
- The mouse event refers to an event triggered by an operation performed with a peripheral mouse device or touchpad.
- The keyboard event refers to an event triggered by an operation performed with a peripheral keyboard.
Focus event: an event triggered when a component receives or loses focus.
Drag event: an event initiated by touchscreen and keyboard/mouse events, including long-press dragging with a finger or stylus and mouse dragging.
Event distribution: a process of collecting hits in the response chain of touchscreen events (excluding key presses and focus).
The gesture event includes the gesture binding method and the bound gesture – a single or combined gesture.
Gesture binding method: a method that binds a single or combined gesture to a component and declares the response priority of the bound gesture.
Single gesture: basic unit of gestures, which is part of all complex gestures.
Combined gesture: a combination of single gestures brought together according to a declared type and a certain rule.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Atomic Service Full Screen Launch Component (FullScreenLaunchComponent)
harmony 鸿蒙Arc Button (ArcButton)
harmony 鸿蒙Frame Animation (ohos.animator)
harmony 鸿蒙Implementing Property Animation
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦