File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 18
18
import Indicators from ' ./Indicators.svelte' ;
19
19
import Slide from ' ./Slide.svelte' ;
20
20
import { canChangeSlide } from ' ./CarouselSlide' ;
21
- import type { ParamsType } from ' ../types'
21
+ import type { ParamsType } from ' ../types' ;
22
22
23
23
type TransitionFunc = (node : HTMLElement , params : ParamsType ) => TransitionConfig ;
24
24
const SLIDE_DURATION_RATIO = 0.25 ; // TODO: Expose one day?
61
61
62
62
_state .index = _state .index >= images .length - 1 ? 0 : _state .index + 1 ;
63
63
_state .lastSlideChange = new Date ();
64
+ _state .forward = true ;
64
65
return { ... _state };
65
66
});
66
67
};
71
72
72
73
_state .index = _state .index <= 0 ? images .length - 1 : _state .index - 1 ;
73
74
_state .lastSlideChange = new Date ();
75
+ _state .forward = false ;
74
76
return { ... _state };
75
77
});
76
78
};
You can’t perform that action at this time.
0 commit comments