@longlost/app-carousel
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -8,8 +8,3 @@ | ||
* | ||
* @customElement | ||
* @polymer | ||
* @demo demo/index.html | ||
* | ||
* | ||
* | ||
* | ||
@@ -75,2 +70,8 @@ * Styling: | ||
* | ||
* | ||
* | ||
* @customElement | ||
* @polymer | ||
* @demo demo/index.html | ||
* | ||
**/ | ||
@@ -319,2 +320,9 @@ | ||
disconnectedCallback() { | ||
super.disconnectedCallback(); | ||
window.removeEventListener('resize', this.__resizeHandler.bind(this)); | ||
} | ||
// Array of all observed elements | ||
@@ -761,2 +769,4 @@ // with a true isIntersecting prop. | ||
if (!this._sections[index]) { return 0; } | ||
// Dynamically measure scroller and target elements | ||
@@ -773,2 +783,3 @@ // in order to catch all resizes. | ||
const containerX = containerBBox.x; | ||
return targetX - containerX; | ||
@@ -780,2 +791,3 @@ } | ||
const containerX = containerBBox.x + containerBBox.width; | ||
return targetX - containerX; | ||
@@ -794,3 +806,3 @@ } | ||
throw new Error(`app-carousel position property must one of two choices - | ||
throw new Error(`app-carousel position property must one of three choices - | ||
'start' | ||
@@ -797,0 +809,0 @@ 'center' |
{ | ||
"name": "@longlost/app-carousel", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "configurable carousel with autoplay, swipe, optional nav and av buttons", | ||
@@ -24,3 +24,3 @@ "main": "app-carousel.js", | ||
"@longlost/lambda": "^2.2.0", | ||
"@longlost/utils": "^1.5.1", | ||
"@longlost/utils": "^1.5.2", | ||
"@polymer/iron-icon": "^3.0.1", | ||
@@ -27,0 +27,0 @@ "@polymer/paper-icon-button": "^3.0.2", |
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
43597
806
Updated@longlost/utils@^1.5.2