We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61823c7 commit 6b7de16Copy full SHA for 6b7de16
src/lib/carousel/Carousel.svelte
@@ -53,16 +53,6 @@
53
dispatch('change', images[index]);
54
});
55
56
- let prevIndex: number = index;
57
- $: {
58
- if (!prevIndex || prevIndex < index) {
59
- update((_state) => ({ ..._state, forward: true, index }));
60
- } else {
61
- update((_state) => ({ ..._state, forward: false, index }));
62
- }
63
- prevIndex = index;
64
65
-
66
const nextSlide = () => {
67
update((_state) => {
68
if (!canChangeSlide({ lastSlideChange: _state.lastSlideChange, slideDuration, slideDurationRatio: SLIDE_DURATION_RATIO })) return _state;
0 commit comments