From 11230c41c69181ceecf83fca79b48760d6f30847 Mon Sep 17 00:00:00 2001 From: Anders Mikkelsen Date: Sat, 22 Jun 2019 14:21:11 +0200 Subject: [PATCH 1/2] added disable touch option in presentation --- source/modules/Presentation.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 && ( + + )}
) } From 9624a3c4667970901743065fcde9e530e5f34e55 Mon Sep 17 00:00:00 2001 From: Anders Mikkelsen Date: Sat, 22 Jun 2019 14:27:09 +0200 Subject: [PATCH 2/2] included touch option in readme --- README.md | 1 + 1 file changed, 1 insertion(+) 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