Naotoshi Fujita
|
e975408720
Triggers the `onMoved` callback when the transition is cancelled.
|
3 years ago |
Naotoshi Fujita
|
08c66ef6d9
Tweak a comment.
|
3 years ago |
Naotoshi Fujita
|
a7ace69f1d
Simplify the "move" logic with a new "jump" indicator.
|
3 years ago |
Naotoshi Fujita
|
9518f8e03f
Change condition of shifting a carousel.
|
3 years ago |
Naotoshi Fujita
|
550a4db3e6
Make `getRate()` accept an index.
|
3 years ago |
Naotoshi Fujita
|
b164d15184
Bug Fix: After the carousel is shifted, it may be rewound back when going opposite direction against the shifted one.
|
3 years ago |
Naotoshi Fujita
|
78100f8de5
Add the `trackSize()` method. Fix incorrect gap calculation.
|
3 years ago |
Naotoshi Fujita
|
ce6b005bfe
Refactoring methods related with positions.
|
3 years ago |
Naotoshi Fujita
|
97f287bf79
Add the `getRate()` method.
|
3 years ago |
Naotoshi Fujita
|
fa270cb5f4
Optimize the `loop()` method.
|
3 years ago |
Naotoshi Fujita
|
becd836176
Refactoring.
|
3 years ago |
Naotoshi Fujita
|
579a91817e
Make sure the previous transition is cancelled before the new one is made.
|
3 years ago |
Naotoshi Fujita
|
ab0bcb25b7
Support the horizontal mouse wheel.
|
3 years ago |
Naotoshi Fujita
|
06a0c25c10
Use `const` for typing constructors. Add the `lazyload:error` event.
|
3 years ago |
Naotoshi Fujita
|
3d70738973
Tweak comments.
|
3 years ago |
Naotoshi Fujita
|
ea1171cb37
Accept the `!overflow` key for breakpoints. Reset the carousel position when setting `clones` to `0`.
|
3 years ago |
Naotoshi Fujita
|
5e088b04ec
Reformat the code.
|
3 years ago |
Naotoshi Fujita
|
5aff57ae60
Remove the `cover` option and the `Cover` component. Use default parameters.
|
3 years ago |
Naotoshi Fujita
|
0bfa98610a
Remove getters.
|
3 years ago |
Naotoshi Fujita
|
cbc8dddeb7
Refactoring position calculation.
|
3 years ago |
Naotoshi Fujita
|
334559355b
Replace all utility methods with the util package.
|
3 years ago |
Naotoshi Fujita
|
8c02b3aea9
Replace the event system with the util package.
|
3 years ago |
Naotoshi Fujita
|
7f2f8e1627
Update comments.
|
3 years ago |
Naotoshi Fujita
|
7304828a1e
Bug Fix: Should exclude the last gap when trimming edge spaces.
|
3 years ago |
Naotoshi Fujita
|
5761e4d844
Bug Fix: Should not loop a carousel by `Move#cancel()`.
|
3 years ago |
Naotoshi Fujita
|
40ad465129
Simplify the "shift" condition.
|
3 years ago |
Naotoshi Fujita
|
8aff0998b4
Bug Fix: Rarely the loop carousel rewound itself.
|
3 years ago |
Naotoshi Fujita
|
553c3378d4
Bug Fix: Incorrect prop name (#807).
|
3 years ago |
Naotoshi Fujita
|
bac10d9580
Bug Fix: Need to shift the carousel when it crosses bounds.
|
3 years ago |
NaotoshiFujita
|
27ecadf03a
Optimize performance and Refactoring.
|
3 years ago |