Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spriteful/spriteful-carousel

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spriteful/spriteful-carousel - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"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) => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc