Skip to content

Commit 610acea

Browse files
kasperski95longziz
authored andcommitted
fix: make rotation gesture smooth again
49cc59feef4ae772c73ec72aa276a0388c101d23 commit broke the behavior rotation of gesture handler. This MR fixes it. There is a risk this MR breaks numberOfPointers fix, but I wasn't able to break the associated with that commit test. Test Plan: Check test rotation gesture handler page in release mode. See merge request rnoh/react-native-harmony-gesture-handler!96
1 parent 7d2ae65 commit 610acea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tester/harmony/.clang-format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Language: Cpp
22
# BasedOnStyle: LLVM
33
ColumnLimit: 120
4-
SortIncludes: false
5-
TabWidth: 2
4+
SortIncludes: CaseSensitive
5+
TabWidth: 4
66
IndentWidth: 2
77
UseTab: Never
88
AccessModifierOffset: -2

tester/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerRootViewComponentInstance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RNGestureHandlerRootViewComponentInstance::findTargetForTouchPoint(Point const &
4343
void RNGestureHandlerRootViewComponentInstance::RNGestureHandlerRootViewTouchHandler::onTouchEvent(
4444
ArkUI_UIInputEvent *e) {
4545
auto eventTime = OH_ArkUI_UIInputEvent_GetEventTime(e);
46-
if (eventTime <= lastEventTime) {
46+
if (eventTime < lastEventTime) {
4747
return;
4848
}
4949
lastEventTime = eventTime;

0 commit comments

Comments
 (0)