MOBILE-3814 collapsible: Check frozen state before end the transition

main
Pau Ferrer Ocaña 2022-03-11 10:09:29 +01:00
parent 0616f79df9
commit 0d82115364
1 changed files with 4 additions and 0 deletions

View File

@ -399,6 +399,10 @@ export class CoreCollapsibleHeaderDirective implements OnInit, OnChanges, OnDest
return; return;
} }
if (page.classList.contains('is-frozen')) {
return;
}
const progress = parseFloat(page.style.getPropertyValue('--collapsible-header-progress')); const progress = parseFloat(page.style.getPropertyValue('--collapsible-header-progress'));
const scrollTop = contentScroll.scrollTop; const scrollTop = contentScroll.scrollTop;
const collapse = progress > 0.5; const collapse = progress > 0.5;