@samitouri / QOS-React-2 / commits / 4d949d7641

[React Native] Replace touch discrepancy errors to warnings (#15866)

Timothy Yung committed Jun 12, 2019 at 11:37 UTC 4d949d7641490d6df5a96848628bb3fea6cced6d
1 file changed +2 -2
packages/events/ResponderTouchHistoryStore.js
+2 -2
@@ -129,7 +129,7 @@ function recordTouchMove(touch: Touch): void {
129 touchRecord.currentTimeStamp = timestampForTouch(touch);
130 touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
131 } else {
132 - console.error(
132 + console.warn(
133 'Cannot record touch move without a touch start.\n' + 'Touch Move: %s\n',
134 'Touch Bank: %s',
135 printTouch(touch),
@@ -150,7 +150,7 @@ function recordTouchEnd(touch: Touch): void {
150 touchRecord.currentTimeStamp = timestampForTouch(touch);
151 touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
152 } else {
153 - console.error(
153 + console.warn(
154 'Cannot record touch end without a touch start.\n' + 'Touch End: %s\n',
155 'Touch Bank: %s',
156 printTouch(touch),