mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
179c24e255
Summary: Changelog: [Internal] Emit touch-equivalent W3C pointer events on iOS Reviewed By: lunaleaps Differential Revision: D35295104 fbshipit-source-id: 1c1d5a4159bbfed92df151f7e12a4973ec44e970
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "PointerEvent.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
#if RN_DEBUG_STRING_CONVERTIBLE
|
|
|
|
std::string getDebugName(PointerEvent const &pointerEvent) {
|
|
return "PointerEvent";
|
|
}
|
|
|
|
std::vector<DebugStringConvertibleObject> getDebugProps(
|
|
PointerEvent const &pointerEvent,
|
|
DebugStringConvertibleOptions options) {
|
|
return {
|
|
{"pointerId", getDebugDescription(pointerEvent.pointerId, options)},
|
|
{"pressure", getDebugDescription(pointerEvent.pressure, options)},
|
|
{"pointerType", getDebugDescription(pointerEvent.pointerType, options)},
|
|
{"clientPoint", getDebugDescription(pointerEvent.clientPoint, options)},
|
|
{"target", getDebugDescription(pointerEvent.target, options)},
|
|
{"timestamp", getDebugDescription(pointerEvent.timestamp, options)},
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|