mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-05-10 22:03:46 +08:00
Fix lint issue
This commit is contained in:
@@ -84,7 +84,7 @@ function normalizeMouseEvent(nativeEvent) {
|
||||
}
|
||||
|
||||
function normalizeNativeEvent(nativeEvent) {
|
||||
if (nativeEvent.originalEvent) { return nativeEvent; }
|
||||
if (nativeEvent.originalEvent) { return nativeEvent }
|
||||
const eventType = nativeEvent.type || (nativeEvent.originalEvent && nativeEvent.originalEvent.type) || ''
|
||||
const mouse = eventType.indexOf('mouse') >= 0
|
||||
return mouse ? normalizeMouseEvent(nativeEvent) : normalizeTouchEvent(nativeEvent)
|
||||
|
||||
Reference in New Issue
Block a user