Socket
Socket
Sign inDemoInstall

react-responsive-carousel

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-responsive-carousel - npm Package Compare versions

Comparing version 3.2.8 to 3.2.9

6

lib/cjs/components/Carousel.js

@@ -295,3 +295,5 @@ "use strict";

if (_this.props.infiniteLoop) {
var hasMoved = Math.abs(axisDelta) > _this.props.swipeScrollTolerance;
if (_this.props.infiniteLoop && hasMoved) {
// When allowing infinite loop, if we slide left from position 0 we reveal the cloned last slide that appears before it

@@ -309,4 +311,2 @@ // if we slide even further we need to jump to other side so it can continue - and vice versa for the last slide

var hasMoved = Math.abs(axisDelta) > _this.props.swipeScrollTolerance;
if (hasMoved && !_this.state.cancelClick) {

@@ -313,0 +313,0 @@ _this.setState({

@@ -295,3 +295,5 @@ "use strict";

if (_this.props.infiniteLoop) {
var hasMoved = Math.abs(axisDelta) > _this.props.swipeScrollTolerance;
if (_this.props.infiniteLoop && hasMoved) {
// When allowing infinite loop, if we slide left from position 0 we reveal the cloned last slide that appears before it

@@ -309,4 +311,2 @@ // if we slide even further we need to jump to other side so it can continue - and vice versa for the last slide

var hasMoved = Math.abs(axisDelta) > _this.props.swipeScrollTolerance;
if (hasMoved && !_this.state.cancelClick) {

@@ -313,0 +313,0 @@ _this.setState({

{
"name": "react-responsive-carousel",
"version": "3.2.8",
"version": "3.2.9",
"description": "React Responsive Carousel",

@@ -38,3 +38,3 @@ "author": {

"update-codesandbox": "cd codesandbox/default && yarn add react-responsive-carousel@latest",
"format": "prettier '**/*.{js,json}'",
"format": "prettier '**/*.{js,ts,tsx,json}'",
"format:check": "yarn format --check",

@@ -49,5 +49,5 @@ "format:write": "yarn format --write",

"lib:build": "yarn lib:build-cjs && yarn lib:build-es && yarn lib:build-styles && yarn lib:build-types",
"lib:build-cjs": "babel ./src -d lib/cjs --ignore './src/__tests__' --extensions '.ts,.tsx' --config-file ./babel.config.cjs.json",
"lib:build-es": "babel ./src -d lib/es --ignore './src/__tests__' --extensions '.ts,.tsx' --config-file ./babel.config.json",
"lib:build-styles": "mkdir -p lib/styles && node-sass src/carousel.scss > lib/styles/carousel.css && node-sass --output-style compressed src/carousel.scss > lib/styles/carousel.min.css",
"lib:build-cjs": "babel ./src -d lib/cjs --ignore './src/__tests__' --extensions .ts,.tsx --config-file ./babel.config.cjs.json",
"lib:build-es": "babel ./src -d lib/es --ignore './src/__tests__' --extensions .ts,.tsx --config-file ./babel.config.json",
"lib:build-styles": "mkdirp lib/styles && node-sass src/carousel.scss > lib/styles/carousel.css && node-sass --output-style compressed src/carousel.scss > lib/styles/carousel.min.css",
"lib:build-types": "tsc -p tsconfig.types.json",

@@ -98,2 +98,3 @@ "lib:pre-publish": "npm version patch && git push origin master",

"jest-cli": "^25.3.0",
"mkdirp": "^1.0.4",
"node-sass": "^4.13.1",

@@ -100,0 +101,0 @@ "parcel-bundler": "^1.12.4",

@@ -41,3 +41,3 @@ # React Responsive Carousel

Check it out these [cool demos](http://react-responsive-carousel.js.org/storybook/index.html) created using [storybook](https://storybook.js.org/). The source code for each example is available [here](https://github.com/leandrowd/react-responsive-carousel/blob/master/stories/index.js)
Check it out these [cool demos](http://react-responsive-carousel.js.org/storybook/index.html) created using [storybook](https://storybook.js.org/). The source code for each example is available [here](https://github.com/leandrowd/react-responsive-carousel/blob/master/stories/)

@@ -44,0 +44,0 @@ Customize it yourself:

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