Skip to content

Commit 72dcbe5

Browse files
author
sagiv.bengiat
committed
fix rollup exports and missing prop
1 parent 4096421 commit 72dcbe5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export default {
1616
{
1717
file: pkg.main,
1818
format: 'cjs',
19-
sourcemap: true
19+
sourcemap: true,
20+
exports: 'named'
2021
},
2122
{
2223
file: pkg.module,

src/react-elastic-carousel/components/Carousel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ class Carousel extends React.Component {
446446
pagination,
447447
showArrows,
448448
disableArrowsOnEnd,
449+
preventDefaultTouchmoveEvent,
449450
renderArrow,
450451
renderPagination
451452
} = this.props;
@@ -519,6 +520,7 @@ class Carousel extends React.Component {
519520
itemPadding={itemPadding}
520521
enableSwipe={enableSwipe}
521522
enableMouseSwipe={enableMouseSwipe}
523+
preventDefaultTouchmoveEvent={preventDefaultTouchmoveEvent}
522524
onSwipedLeft={onSwipedLeft}
523525
onSwipedRight={onSwipedRight}
524526
onSwipedUp={onSwipedUp}

src/react-elastic-carousel/components/Track.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Track.propTypes = {
6666
childWidth: PropTypes.number,
6767
enableSwipe: PropTypes.bool,
6868
enableMouseSwipe: PropTypes.bool,
69+
preventDefaultTouchmoveEvent: PropTypes.bool,
6970
onSwipedLeft: PropTypes.func,
7071
onSwipedRight: PropTypes.func,
7172
onSwipedUp: PropTypes.func,

0 commit comments

Comments
 (0)