@react-spring/parallax
Advanced tools
Comparing version 9.3.0 to 9.3.1
@@ -305,3 +305,9 @@ 'use strict'; | ||
}); | ||
const overflow = enabled ? 'scroll' : 'hidden'; | ||
const overflow = enabled ? { | ||
overflowY: horizontal ? 'hidden' : 'scroll', | ||
overflowX: horizontal ? 'scroll' : 'hidden' | ||
} : { | ||
overflowY: 'hidden', | ||
overflowX: 'hidden' | ||
}; | ||
return React__namespace.createElement(web.a.div, _extends({}, rest, { | ||
@@ -315,6 +321,4 @@ ref: containerRef, | ||
width: '100%', | ||
height: '100%', | ||
overflow, | ||
overflowY: horizontal ? 'hidden' : overflow, | ||
overflowX: horizontal ? overflow : 'hidden', | ||
height: '100%' | ||
}, overflow, { | ||
WebkitOverflowScrolling: 'touch', | ||
@@ -321,0 +325,0 @@ WebkitTransform: START_TRANSLATE, |
@@ -305,3 +305,9 @@ 'use strict'; | ||
}); | ||
const overflow = enabled ? 'scroll' : 'hidden'; | ||
const overflow = enabled ? { | ||
overflowY: horizontal ? 'hidden' : 'scroll', | ||
overflowX: horizontal ? 'scroll' : 'hidden' | ||
} : { | ||
overflowY: 'hidden', | ||
overflowX: 'hidden' | ||
}; | ||
return React__namespace.createElement(web.a.div, _extends({}, rest, { | ||
@@ -315,6 +321,4 @@ ref: containerRef, | ||
width: '100%', | ||
height: '100%', | ||
overflow, | ||
overflowY: horizontal ? 'hidden' : overflow, | ||
overflowX: horizontal ? overflow : 'hidden', | ||
height: '100%' | ||
}, overflow, { | ||
WebkitOverflowScrolling: 'touch', | ||
@@ -321,0 +325,0 @@ WebkitTransform: START_TRANSLATE, |
@@ -280,3 +280,9 @@ import * as React from 'react'; | ||
}); | ||
const overflow = enabled ? 'scroll' : 'hidden'; | ||
const overflow = enabled ? { | ||
overflowY: horizontal ? 'hidden' : 'scroll', | ||
overflowX: horizontal ? 'scroll' : 'hidden' | ||
} : { | ||
overflowY: 'hidden', | ||
overflowX: 'hidden' | ||
}; | ||
return React.createElement(a.div, _extends({}, rest, { | ||
@@ -290,6 +296,4 @@ ref: containerRef, | ||
width: '100%', | ||
height: '100%', | ||
overflow, | ||
overflowY: horizontal ? 'hidden' : overflow, | ||
overflowX: horizontal ? overflow : 'hidden', | ||
height: '100%' | ||
}, overflow, { | ||
WebkitOverflowScrolling: 'touch', | ||
@@ -296,0 +300,0 @@ WebkitTransform: START_TRANSLATE, |
{ | ||
"name": "@react-spring/parallax", | ||
"version": "9.3.0", | ||
"version": "9.3.1", | ||
"main": "dist/react-spring-parallax.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/react-spring-parallax.esm.js", |
36979
953