dynamic-marquee
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -247,3 +247,6 @@ (function (global, factory) { | ||
_ref$upDown = _ref.upDown, | ||
upDown = _ref$upDown === void 0 ? false : _ref$upDown; | ||
upDown = _ref$upDown === void 0 ? false : _ref$upDown, | ||
_ref$startOnScreen = _ref.startOnScreen, | ||
startOnScreen = | ||
_ref$startOnScreen === void 0 ? false : _ref$startOnScreen; | ||
@@ -254,3 +257,3 @@ _classCallCheck(this, Marquee); | ||
this._waitingForItem = true; | ||
this._nextItemImmediatelyFollowsPrevious = false; | ||
this._nextItemImmediatelyFollowsPrevious = startOnScreen; | ||
this._rate = rate; | ||
@@ -586,2 +589,7 @@ this._lastEffectiveRate = rate; | ||
if ( | ||
this._nextItemImmediatelyFollowsPrevious && | ||
!this._items.length | ||
) { | ||
this._leftItemOffset = containerSize; | ||
} else if ( | ||
!this._nextItemImmediatelyFollowsPrevious && | ||
@@ -588,0 +596,0 @@ this._items.length && |
{ | ||
"name": "dynamic-marquee", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "A small library for creating marquees.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/dynamic-marquee.js", |
@@ -63,2 +63,3 @@ [![npm version](https://badge.fury.io/js/dynamic-marquee.svg)](https://badge.fury.io/js/dynamic-marquee) | ||
upDown: true, // downwards instead of to the right | ||
startOnScreen: false, // start on screen | ||
}); | ||
@@ -65,0 +66,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42017
746
165