Touch Support for Bespoke.js
Download the production version or the development version, or use a package manager.
This plugin is shipped in a UMD format, meaning that it is available as a CommonJS/AMD module or browser global.
For example, when using CommonJS modules:
var bespoke = require('bespoke'),
touch = require('bespoke-touch');
bespoke.from('article', [
touch()
}];
When using browser globals:
bespoke.from('article', [
bespoke.plugins.touch()
}];
By default, bespoke-touch uses horizontal swipes to navigate the slides.
If your presentation is laid out vertically, you can allow navigation with vertical swipes using the vertical
option:
bespoke.from('article', [
touch('vertical')
]);
$ npm install bespoke-touch
$ bower install bespoke-touch
This plugin was built with generator-bespokeplugin.