Home
last modified time | relevance | path

Searched refs:touches (Results 1 – 25 of 116) sorted by relevance

12345

/ohos5.0/docs/zh-cn/third-party-cases/
H A Dlist-pullup-loading-data.md66 this.downY = event.touches[0].y; // 记录按下的y坐标
67 this.lastMoveY = event.touches[0].y;
84 if (event.touches[0].y - this.lastMoveY < 0) { // 手指上滑
87 this.offsetY = event.touches[0].y - this.downY; // 滑动的偏移量
94 this.lastMoveY = event.touches[0].y;
236 this.downY = event.touches[0].y; // 记录按下的y坐标
237 this.lastMoveY = event.touches[0].y;
244 if (event.touches[0].y - this.lastMoveY < 0) { // 手指上滑
247 this.offsetY = event.touches[0].y - this.downY; // 滑动的偏移量
254 this.lastMoveY = event.touches[0].y;
H A Dcontent-changing-with-pulldown.md103 if (event.touches[0].y <= 140) {
104 this.heightValue = 88 - event.touches[0].y / 7 + '%'
111 console.info('垂直方向滑动距离' + event.touches[0].y)
214 if (event.touches[0].y <= 140) {
215 this.heightValue = 88 - event.touches[0].y / 7 + '%'
222 console.info('垂直方向滑动距离' + event.touches[0].y)
H A Drealization-of-collapsible-title-effect.md103 if (event.touches[0].y <= 140) {
104 this.heightValue = 88 - event.touches[0].y / 7 + '%'
111 console.info('垂直方向滑动距离' + event.touches[0].y)
214 if (event.touches[0].y <= 140) {
215 this.heightValue = 88 - event.touches[0].y / 7 + '%'
222 console.info('垂直方向滑动距离' + event.touches[0].y)
H A Dhow-to-develop-spring-animation.md163 x: event.touches[0].screenX - 100 / 2,
164 y: event.touches[0].screenY - 100 / 2
269 x: event.touches[0].screenX - 100 / 2,
270 y: event.touches[0].screenY - 100 / 2
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/views/
H A DfocusAreaPage.ets48 this.focusPointVal[0] = e.touches[0].screenX;
49 this.focusPointVal[1] = e.touches[0].screenY;
53 e.touches[0].screenX / this.xComponentWidth,
54 e.touches[0].screenY / this.xComponentHeight
58 e.touches[0].screenX / this.xComponentWidth,
59 e.touches[0].screenY / this.xComponentHeight + 50
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/demo/entry/src/main/ets/views/
H A DFocusAreaPage.ets48 this.focusPointVal[0] = e.touches[0].screenX;
49 this.focusPointVal[1] = e.touches[0].screenY;
52 x: e.touches[0].screenX / this.xComponentWidth,
53 y: e.touches[0].screenY / this.xComponentHeight
57 x: e.touches[0].screenX / this.xComponentWidth,
58 y: e.touches[0].screenY / this.xComponentHeight + 50
/ohos5.0/foundation/multimodalinput/input/service/key_command/test/
H A Dkey_command_handler_test.cpp471 handler.twoFingerGesture_.touches[0].id = 5;
472 handler.twoFingerGesture_.touches[0].x = 50;
493 handler.twoFingerGesture_.touches[0].id = 1;
494 handler.twoFingerGesture_.touches[0].x = 30;
495 handler.twoFingerGesture_.touches[0].y = 20;
497 handler.twoFingerGesture_.touches[1].id = 2;
498 handler.twoFingerGesture_.touches[1].x = 20;
499 handler.twoFingerGesture_.touches[1].y = 10;
688 handler.twoFingerGesture_.touches->id = 1;
689 handler.twoFingerGesture_.touches->x = 25;
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-events-touch.md33 …aseevent对象说明)。非事件注入场景下,changedTouches是按屏幕显示刷新率重采样的点,touches是按器件刷新率报上来的点,changedTouches的数据可能会和touch…
40 | touches | Array&lt;[TouchObject](#touchobject对象说明)&gt; | 全部手指信息。<br/>**原子化服务API:** 从A…
118 + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\nComponent globalPos:('
136 + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\nComponent globalPos:('
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.11.5/
H A Dchangelogs-multimodalinput.md41 | touches | touches |
42 | changedTouches | touches |
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
H A DGLFrame.js44 e.touches[0].clientX,
45 e.touches[0].clientY
52 e.touches[0].clientX,
53 e.touches[0].clientY
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Darkts-common-events-touch-screen-event.md105 + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\nComponent globalPos:('
123 + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\nComponent globalPos:('
H A Darkts-animation-smoothing.md97 this.positionX = event.touches[0].windowX - this.diameter / 2;
98 this.positionY = event.touches[0].windowY - this.diameter / 2;
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/event/move/
H A Dindex.js33 this.startX = e.touches.startX;
34 this.startY = e.touches.startY;
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.11.5/
H A Dchangelogs-multimodalinput.md41 | touches | touches |
42 | changedTouches | touches |
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select_popup/
H A Drender_select_popup.cpp413 auto touches = info.GetTouches(); in ProcessTouchDown() local
414 if (touches.empty()) { in ProcessTouchDown()
419 auto clickPosition = touches.front().GetLocalLocation(); in ProcessTouchDown()
425 firstFingerDownOffset_ = touches.front().GetGlobalLocation(); in ProcessTouchDown()
431 auto touches = info.GetTouches(); in ProcessTouchUp() local
432 if (touches.empty()) { in ProcessTouchUp()
437 auto clickPosition = touches.front().GetLocalLocation(); in ProcessTouchUp()
446 auto offset = touches.front().GetGlobalLocation(); in ProcessTouchUp()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_interactable_view_ffi.cpp136 auto& touches = touchEventInfo.GetTouches(); in FfiOHOSAceFrameworkInteractableViewOnTouch() local
137 ffiTouchInfo.touches = new CJTouchInfo[touches.size()]; in FfiOHOSAceFrameworkInteractableViewOnTouch()
138 TransformNativeTouchLocationInfo(ffiTouchInfo.touches, touches); in FfiOHOSAceFrameworkInteractableViewOnTouch()
139 ffiTouchInfo.touchesSize = static_cast<int32_t>(touches.size()); in FfiOHOSAceFrameworkInteractableViewOnTouch()
166 delete[] ffiTouchInfo.touches; in FfiOHOSAceFrameworkInteractableViewOnTouch()
/ohos5.0/docs/en/application-dev/application-models/
H A Dability-startup-with-explicit-want.md3 When a user touches a button in an application, the application often needs to start a UIAbility co…
5 The user touches a button in the application to start the UIAbility component to complete a specifi…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-common-events.md57 | touches | Array&lt;TouchInfo&gt; | 触摸事件时的属性集合,包含屏幕触摸点的信息数组。 |
58 …chInfo&gt; | 触摸事件时的属性集合,包括产生变化的屏幕触摸点的信息数组。数据格式和touches一样。该属性表示有变化的触摸点,如从无变有,位置变化,从有变无。例如用户手指刚接触屏幕时…
120 console.info(`on touch start, point is: ${msg.touches[0].globalX}`);
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-events-touch.md33 …while **touches** indicates points based on the device's refresh rate. As such, the data in **chan…
40 | touches | Array&lt;[TouchObject](#touchobject)&gt; | All finger information.<br>**Ato…
118 + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\nComponent globalPos:('
136 + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\nComponent globalPos:('
/ohos5.0/docs/en/application-dev/ui/
H A Darkts-common-events-touch-screen-event.md102 + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\nComponent globalPos:('
120 + event.touches[0].x + '\n' + 'y: ' + event.touches[0].y + '\nComponent globalPos:('
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/option/
H A Drender_option.cpp578 auto touches = info.GetTouches(); in ProcessTouchDown() local
579 if (touches.empty()) { in ProcessTouchDown()
588 auto touchPosition = touches.front().GetLocalLocation(); in ProcessTouchDown()
599 auto touches = info.GetTouches(); in ProcessTouchUp() local
600 if (touches.empty()) { in ProcessTouchUp()
609 auto touchPosition = touches.front().GetLocalLocation(); in ProcessTouchUp()
/ohos5.0/docs/en/release-notes/
H A DOpenHarmony-v3.2.1-release.md101 …ication to access image preview, swipes backwards about 150 widgets, and touches to add a widget, …
102 | I6RJTP | A user touches a Bluetooth headset on the Bluetooth screen of the device for connection.…
143touches an image in Gallery to maximize it and then exits repeatedly.| Each time the user touches
144touches an image folder in Gallery to browse images in grid form and then exits repeatedly.| Each …
/ohos5.0/docs/zh-cn/application-dev/reference/apis-input-kit/
H A Djs-apis-multimodalinput-gestureevent-sys.md26 | touches | [Touch](js-apis-touchevent.md#touch)[] | 是 | 否 | 触摸点信息。 |
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_navdestination_scrollable_processor.cpp129 const auto& touches = info.GetTouches(); in HandleOnTouchEvent() local
130 if (touches.empty()) { in HandleOnTouchEvent()
133 auto touchType = touches.front().GetTouchType(); in HandleOnTouchEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dstate_style_manager.cpp52 const auto& touches = info.GetTouches(); in GetPressedListener() local
54 if (touches.empty() || changeTouches.empty()) { in GetPressedListener()
73 int32_t sourceType = static_cast<int32_t>(touches.front().GetSourceDevice()); in GetPressedListener()

12345