mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-29 12:54:53 +08:00
[fix] Touchable 'touchAction' value
This commit is contained in:
@@ -286,7 +286,7 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
actionable: {
|
actionable: {
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
touchAction: 'manipulate'
|
touchAction: 'manipulation'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
actionable: {
|
actionable: {
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
touchAction: 'manipulate'
|
touchAction: 'manipulation'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ const TouchableWithoutFeedback = createReactClass({
|
|||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
actionable: {
|
actionable: {
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
touchAction: 'manipulate'
|
touchAction: 'manipulation'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,19 @@ const ViewStylePropTypes = {
|
|||||||
overscrollBehaviorY: overscrollBehaviorType,
|
overscrollBehaviorY: overscrollBehaviorType,
|
||||||
perspective: oneOfType([number, string]),
|
perspective: oneOfType([number, string]),
|
||||||
perspectiveOrigin: string,
|
perspectiveOrigin: string,
|
||||||
touchAction: string,
|
touchAction: oneOf([
|
||||||
|
'auto',
|
||||||
|
'inherit',
|
||||||
|
'manipulation',
|
||||||
|
'none',
|
||||||
|
'pan-down',
|
||||||
|
'pan-left',
|
||||||
|
'pan-right',
|
||||||
|
'pan-up',
|
||||||
|
'pan-x',
|
||||||
|
'pan-y',
|
||||||
|
'pinch-zoom'
|
||||||
|
]),
|
||||||
transitionDelay: string,
|
transitionDelay: string,
|
||||||
transitionDuration: string,
|
transitionDuration: string,
|
||||||
transitionProperty: string,
|
transitionProperty: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user