Skip to content

Commit

Permalink
Merge pull request #108 from femioladeji/fix-swipe
Browse files Browse the repository at this point in the history
Fix swipe
  • Loading branch information
femioladeji authored Nov 16, 2020
2 parents 1332b96 + c82f91c commit 167482b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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": "react-slideshow-image",
"version": "3.3.1",
"version": "3.3.2",
"author": "Femi Oladeji",
"description": "An image slideshow with react",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Slideshow extends Component {

startSlides() {
const { pauseOnHover, autoplay, duration } = getProps(this.props);
if (this.state.dragging) {
if (this.dragging) {
this.endSwipe()
} else {
if (pauseOnHover && autoplay) {
Expand Down

0 comments on commit 167482b

Please sign in to comment.