perf(NoticeBar): flip

This commit is contained in:
chenjiahan
2020-06-19 21:36:41 +08:00
parent 17d752f882
commit 02219625fb
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ export default createComponent({
const contentHeight = `${offsetHeight}px`;
wrapper.style.height = expanded ? 0 : contentHeight;
// use double raf to ensure animation can start in mobile safari
// use double raf to ensure animation can start
doubleRaf(() => {
wrapper.style.height = expanded ? contentHeight : 0;
});