use-carousel-hook
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -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", |
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
25132
16
513