Skip to content

Commit 4d949d7

Browse files
yungsterscpojer
authored andcommitted
[React Native] Replace touch discrepancy errors to warnings (facebook#15866)
1 parent 45acbdc commit 4d949d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/events/ResponderTouchHistoryStore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function recordTouchMove(touch: Touch): void {
129129
touchRecord.currentTimeStamp = timestampForTouch(touch);
130130
touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
131131
} else {
132-
console.error(
132+
console.warn(
133133
'Cannot record touch move without a touch start.\n' + 'Touch Move: %s\n',
134134
'Touch Bank: %s',
135135
printTouch(touch),
@@ -150,7 +150,7 @@ function recordTouchEnd(touch: Touch): void {
150150
touchRecord.currentTimeStamp = timestampForTouch(touch);
151151
touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
152152
} else {
153-
console.error(
153+
console.warn(
154154
'Cannot record touch end without a touch start.\n' + 'Touch End: %s\n',
155155
'Touch Bank: %s',
156156
printTouch(touch),

0 commit comments

Comments
 (0)