initial-state.js 624 B

1234567891011121314151617181920212223242526272829303132
  1. var initialState = {
  2. animating: false,
  3. autoplaying: null,
  4. currentDirection: 0,
  5. currentLeft: null,
  6. currentSlide: 0,
  7. direction: 1,
  8. dragging: false,
  9. edgeDragged: false,
  10. initialized: false,
  11. lazyLoadedList: [],
  12. listHeight: null,
  13. listWidth: null,
  14. scrolling: false,
  15. slideCount: null,
  16. slideHeight: null,
  17. slideWidth: null,
  18. swipeLeft: null,
  19. swiped: false,
  20. // used by swipeEvent. differentites between touch and swipe.
  21. swiping: false,
  22. touchObject: {
  23. startX: 0,
  24. startY: 0,
  25. curX: 0,
  26. curY: 0
  27. },
  28. trackStyle: {},
  29. trackWidth: 0,
  30. targetSlide: 0
  31. };
  32. export default initialState;