diff --git a/README.md b/README.md index d606293..40796a5 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,7 @@ Main presentation component, a collection of slides. |:---|:---|:---:|:---| | children | any | ✓ | Any React node (typically slides) | | disableTheme | bool | | Do not set default theme/styles | +| disableTouch | bool | | Do not show touch navigation | | router | any | | Specific [react-router](https://github.com/ReactTraining/react-router/) implementation to use; `HashRouter` is used by default | ### Slide diff --git a/source/modules/Presentation.js b/source/modules/Presentation.js index f7d3674..26d19de 100644 --- a/source/modules/Presentation.js +++ b/source/modules/Presentation.js @@ -9,7 +9,8 @@ import TouchNav from './TouchNav' export default class Presentation extends Component { static defaultProps = { disableTheme: false, - router: HashRouter + router: HashRouter, + disableTouch: false }; static propTypes = { @@ -204,7 +205,7 @@ class PresentationInner extends Component { } render () { - const { children, disableTheme } = this.props + const { children, disableTheme, disableTouch } = this.props return (
+ {!disableTouch && ( +