@spriteful/spriteful-carousel
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@spriteful/spriteful-carousel", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "configurable image carousel with autoplay as well as mouse/touch swipe and button interactivity", | ||
@@ -5,0 +5,0 @@ "main": "spriteful-carousel.js", |
@@ -315,3 +315,4 @@ /** | ||
const newX = getNewX(this._sectionCount); | ||
return {x: newX, index: this._sectionCount - 1}; | ||
// return {x: newX, index: this._sectionCount - 1}; off by 1 error? | ||
return {x: newX, index: this._sectionCount}; | ||
} | ||
@@ -418,4 +419,4 @@ } else if (direction === 'left') { | ||
const initialDirection = this._finalVelocity < 0 ? 'right' : 'left'; | ||
this._cancelFlick = false; | ||
this._currentX = this._currentX + dx; | ||
this._cancelFlick = false; | ||
this._currentX = this._currentX + dx; | ||
@@ -422,0 +423,0 @@ const flickDecay = (velocity, direction) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50668
517