From 4e8f9e8fd2c465e5ae2adf46913efdf314719261 Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Mon, 11 Dec 2023 11:55:14 -0800 Subject: [PATCH] DEV: remove animating class (#24830) class is no longer needed to detect animations since the change in: c2295b9d5d306106c332994097151d6a4a3694c6 --- .../javascripts/discourse/app/components/site-header.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/site-header.js b/app/assets/javascripts/discourse/app/components/site-header.js index aa4ab35dc74..3794aafae0a 100644 --- a/app/assets/javascripts/discourse/app/components/site-header.js +++ b/app/assets/javascripts/discourse/app/components/site-header.js @@ -68,11 +68,7 @@ const SiteHeaderComponent = MountWidget.extend( fill: "forwards", easing: "ease-out", }; - panel - .animate([{ transform: `translate3d(0, 0, 0)` }], timing) - .finished.then(() => { - panel.classList.remove("animating"); - }); + panel.animate([{ transform: `translate3d(0, 0, 0)` }], timing); headerCloak.animate([{ opacity: 1 }], timing); this.pxClosed = null; }, @@ -381,7 +377,6 @@ const SiteHeaderComponent = MountWidget.extend( this._swipeMenuOrigin = "left"; finalPosition = -this._PANEL_WIDTH; } - panel.classList.add("animating"); animationFinished = panel.animate( [{ transform: `translate3d(${finalPosition}px, 0, 0)` }], {