just-carousel
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -71,3 +71,5 @@ /* global module, window, document */ | ||
if (idx < 0) { | ||
this._animate(1, 80, function () { | ||
var pos = this.width / 100 / this.slides.length; | ||
this._animate(pos, 80, function () { | ||
self._animate(0, 80, function () { | ||
@@ -85,5 +87,7 @@ onMovingEnd.call(self, { | ||
if (idx + 1 > this.slides.length) { | ||
var pos = this.width / 100 / this.slides.length; | ||
var rightPoint = -100 / this.slides.length * (this.slides.length - 1); | ||
this._animate(rightPoint - 1, 80, function () { | ||
this._animate(rightPoint - pos, 80, function () { | ||
self._animate(rightPoint, 80, function () { | ||
@@ -330,3 +334,2 @@ onMovingEnd.call(self, { | ||
var currentOffset = this.currentOffset * 1; // copy | ||
// alert(start); | ||
@@ -333,0 +336,0 @@ this._isAnimation = true; |
{ | ||
"name": "just-carousel", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Just an 1-item-on-screen carousel that works naturally like an iOS/android desktops and nothing else.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
18111
385