Merge pull request #10108 from binarygit/transparent-bg-in-ff

Fix: Transparent background of 'Complete Order' area on Firefox mobile
This commit is contained in:
Rachel Arnould
2022-12-13 17:34:52 +01:00
committed by GitHub

View File

@@ -15,7 +15,7 @@ export default class extends Controller {
this.containerTarget.style.bottom = "-1px";
const observer = new IntersectionObserver(
([e]) => {
e.target.classList.toggle("sticked", e.intersectionRatio < 1);
e.target.classList.toggle("sticked", e.intersectionRatio <= 1);
},
{ threshold: [1] }
);