We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388ea7f commit 75f2c6eCopy full SHA for 75f2c6e
src/jquery.slotmachine.js
@@ -465,7 +465,7 @@ class SlotMachine {
465
*/
466
resetPosition (margin) {
467
this.$container.toggleClass(FX_NO_TRANSITION);
468
- this._animate(margin || this.direction.initial);
+ this._animate(margin === undefined ? this.direction.initial : margin);
469
// Force reflow, flushing the CSS changes
470
this.$container[0].offsetHeight;
471
0 commit comments