fix(refresher): ensure that translate is cleaned up to avoid stacking context (#20621)

fixes #17949
This commit is contained in:
Elvis Graholskis
2020-02-26 17:56:10 +01:00
committed by GitHub
parent fcf97465f5
commit e3e5c69681

View File

@ -658,7 +658,7 @@ export class Refresher implements ComponentInterface {
if (this.scrollEl && this.backgroundContentEl) {
const scrollStyle = this.scrollEl.style;
const backgroundStyle = this.backgroundContentEl.style;
scrollStyle.transform = backgroundStyle.transform = ((y > 0) ? `translateY(${y}px) translateZ(0px)` : 'translateZ(0px)');
scrollStyle.transform = backgroundStyle.transform = ((y > 0) ? `translateY(${y}px) translateZ(0px)` : '');
scrollStyle.transitionDuration = backgroundStyle.transitionDuration = duration;
scrollStyle.transitionDelay = backgroundStyle.transitionDelay = delay;
scrollStyle.overflow = (overflowVisible ? 'hidden' : '');