Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swipe-js",
"version": "2.2.3",
"version": "2.2.5",
"main": [
"./swipe.js"
],
Expand Down
4 changes: 2 additions & 2 deletions build/swipe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swipejs",
"version": "2.2.4",
"version": "2.2.5",
"main": "swipe.js",
"types": "types/swipe.d.ts",
"description": "Swipe is the most accurate touch slider",
Expand Down
2 changes: 1 addition & 1 deletion react/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion react/swipe.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* React Swipe 2.2.4
* React Swipe 2.2.5
*
* Felix Liu
* Copyright 2016, MIT License
Expand Down
10 changes: 8 additions & 2 deletions swipe.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Swipe 2.2.4
* Swipe 2.2.5
*
* Brad Birdsall
* Copyright 2013, MIT License
Expand Down Expand Up @@ -434,7 +434,13 @@
}
}

function setup() {
function setup(opts) {
if (opts) {
if (opts.startSlide) {
index = parseInt(opts.startSlide, 10) || 0;
}
}

// cache slides
slides = element.children;
length = slides.length;
Expand Down