mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[React Native] Replace touch discrepancy errors to warnings (#15866)
This commit is contained in:
committed by
Christoph Nakazawa
parent
45acbdc0ba
commit
4d949d7641
@@ -129,7 +129,7 @@ function recordTouchMove(touch: Touch): void {
|
||||
touchRecord.currentTimeStamp = timestampForTouch(touch);
|
||||
touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
|
||||
} else {
|
||||
console.error(
|
||||
console.warn(
|
||||
'Cannot record touch move without a touch start.\n' + 'Touch Move: %s\n',
|
||||
'Touch Bank: %s',
|
||||
printTouch(touch),
|
||||
@@ -150,7 +150,7 @@ function recordTouchEnd(touch: Touch): void {
|
||||
touchRecord.currentTimeStamp = timestampForTouch(touch);
|
||||
touchHistory.mostRecentTimeStamp = timestampForTouch(touch);
|
||||
} else {
|
||||
console.error(
|
||||
console.warn(
|
||||
'Cannot record touch end without a touch start.\n' + 'Touch End: %s\n',
|
||||
'Touch Bank: %s',
|
||||
printTouch(touch),
|
||||
|
||||
Reference in New Issue
Block a user