@longlost/app-carousel
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -691,3 +691,3 @@ | ||
this._resizeIndex = undefined; | ||
this.animateToSection(index); | ||
this.moveToSection(index); | ||
} | ||
@@ -839,11 +839,15 @@ | ||
// iOS Safari Hack. | ||
// Without this, the carousel items do not render properly, | ||
// wich leads to issues with IntersectionObserver measurements. | ||
window.requestAnimationFrame(() => { | ||
this.scrollContainer.scrollBy({ | ||
top: 0, | ||
left: 0, | ||
behavior | ||
// This is especially important for device rotation. | ||
if (behavior !== 'smooth') { | ||
// Without this, the carousel items do not render properly, | ||
// wich leads to issues with IntersectionObserver measurements. | ||
window.requestAnimationFrame(() => { | ||
this.scrollContainer.scrollBy({ | ||
top: 0, | ||
left: 0, | ||
behavior | ||
}); | ||
}); | ||
}); | ||
} | ||
} | ||
@@ -945,3 +949,2 @@ | ||
// Temporary workaround for Safari. | ||
@@ -948,0 +951,0 @@ // Addresses a bug in Safari that arises from |
{ | ||
"name": "@longlost/app-carousel", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "configurable carousel with autoplay, swipe, optional nav and av buttons", | ||
@@ -5,0 +5,0 @@ "main": "app-carousel.js", |
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
41339
762