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

use-carousel-hook

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-carousel-hook - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

2

cjs/useCarousel.js

@@ -28,3 +28,3 @@ "use strict";

if ((options.direction === 'vertical' && el.scrollHeight === 0) || el.scrollWidth === 0) {
return children.length;
return children.length - 1;
}

@@ -31,0 +31,0 @@ const lastScrollableChild = children.findIndex(child => options.direction === 'vertical'

@@ -23,3 +23,3 @@ import { useState, useRef, useEffect, useReducer, useCallback } from 'react';

if ((options.direction === 'vertical' && el.scrollHeight === 0) || el.scrollWidth === 0) {
return children.length;
return children.length - 1;
}

@@ -26,0 +26,0 @@ const lastScrollableChild = children.findIndex(child => options.direction === 'vertical'

{
"name": "use-carousel-hook",
"version": "0.0.14",
"version": "0.0.15",
"description": "Adds functionality for carousels using React hooks",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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