mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +08:00
[add] StyleSheet support for 'overscrollBehavior'
An experimental CSS property to control the behavior when the scroll position of a scroll container reaches the edge of the scrollport. This allows web apps to get closer to native scrolling behaviour and performance. https://wicg.github.io/overscroll-behavior/ https://developers.google.com/web/updates/2017/11/overscroll-behavior Fix #765
This commit is contained in:
@@ -688,6 +688,21 @@ const stylePropTypes = [
|
||||
name: 'overflowY',
|
||||
typeInfo: 'string'
|
||||
},
|
||||
{
|
||||
label: 'web',
|
||||
name: 'overscrollBehavior',
|
||||
typeInfo: '"auto" | "contain" | "none"'
|
||||
},
|
||||
{
|
||||
label: 'web',
|
||||
name: 'overscrollBehaviorX',
|
||||
typeInfo: '"auto" | "contain" | "none"'
|
||||
},
|
||||
{
|
||||
label: 'web',
|
||||
name: 'overscrollBehaviorY',
|
||||
typeInfo: '"auto" | "contain" | "none"'
|
||||
},
|
||||
{
|
||||
name: 'padding',
|
||||
typeInfo: 'number | string'
|
||||
|
||||
Reference in New Issue
Block a user