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