Skip to content

Commit 75f2c6e

Browse files
committed
Fix margin 0
1 parent 388ea7f commit 75f2c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.slotmachine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ class SlotMachine {
465465
*/
466466
resetPosition (margin) {
467467
this.$container.toggleClass(FX_NO_TRANSITION);
468-
this._animate(margin || this.direction.initial);
468+
this._animate(margin === undefined ? this.direction.initial : margin);
469469
// Force reflow, flushing the CSS changes
470470
this.$container[0].offsetHeight;
471471
this.$container.toggleClass(FX_NO_TRANSITION);

0 commit comments

Comments
 (0)