Skip to content

Commit cb3d7da

Browse files
committed
fix: πŸ› lint error fix
1 parent 26695e5 commit cb3d7da

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# Js Carousel:
2+
23
A pure Js customisable carousel, that snaps! uses CSS scroll snap on mobile.
34

45
## Features:
6+
57
- Supports snapping of carousel.
68
- Supports autoplay with a specified interval.
79
- Supports scrolling and dragging.
810
- Direction is alterable.
911
- Alignment is alterable.
1012

1113
## Dependencies:
14+
1215
- Use Gesture: https://use-gesture.netlify.app/docs/#vanilla-javascript
1316
- Anime js: https://animejs.com/
1417

β€Žsrc/carousel.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function Carousel(props) {
105105
alignment,
106106
);
107107

108-
const throttleClick = throttle(function () {
108+
const throttleClick = throttle(function throttlefn() {
109109
const firstChild =
110110
parent.childNodes[0].nodeType === Node.ELEMENT_NODE
111111
? parent.childNodes[0]

β€Žsrc/helpers/actions.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function reverseChildren(parent) {
127127
// throttle
128128
export function throttle(fn, delay) {
129129
let lastCall = 0;
130-
return function () {
130+
return function throttlefn() {
131131
const now = new Date().getTime();
132132
if (now - lastCall < delay) {
133133
return;

0 commit comments

Comments
Β (0)