2018-07-20 16:13:21 +08:00
|
|
|
const initialState = {
|
|
|
|
animating: false,
|
|
|
|
autoplaying: null,
|
|
|
|
currentDirection: 0,
|
|
|
|
currentLeft: null,
|
|
|
|
currentSlide: 0,
|
|
|
|
direction: 1,
|
|
|
|
dragging: false,
|
|
|
|
edgeDragged: false,
|
|
|
|
initialized: false,
|
|
|
|
lazyLoadedList: [],
|
|
|
|
listHeight: null,
|
|
|
|
listWidth: null,
|
|
|
|
scrolling: false,
|
|
|
|
slideCount: null,
|
|
|
|
slideHeight: null,
|
|
|
|
slideWidth: null,
|
|
|
|
swipeLeft: null,
|
|
|
|
swiped: false, // used by swipeEvent. differentites between touch and swipe.
|
|
|
|
swiping: false,
|
|
|
|
touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 },
|
|
|
|
trackStyle: {},
|
|
|
|
trackWidth: 0,
|
2022-02-25 14:38:09 +08:00
|
|
|
targetSlide: 0,
|
2019-01-12 11:33:27 +08:00
|
|
|
};
|
2018-07-20 16:13:21 +08:00
|
|
|
|
2019-01-12 11:33:27 +08:00
|
|
|
export default initialState;
|