summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-content/themes/twentytwenty/assets/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/wp-content/themes/twentytwenty/assets/js/index.js')
-rw-r--r--src/wp-content/themes/twentytwenty/assets/js/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wp-content/themes/twentytwenty/assets/js/index.js b/src/wp-content/themes/twentytwenty/assets/js/index.js
index 258658a97e..35efcd6b60 100644
--- a/src/wp-content/themes/twentytwenty/assets/js/index.js
+++ b/src/wp-content/themes/twentytwenty/assets/js/index.js
@@ -257,7 +257,10 @@ twentytwenty.coverModals = {
clickedEl = false;
}
- _win.scrollTo( 0, Math.abs( _win.twentytwenty.scrolled + getAdminBarHeight() ) );
+ _win.scrollTo({
+ top: Math.abs( _win.twentytwenty.scrolled + getAdminBarHeight() ),
+ behavior: 'instant'
+ });
_win.twentytwenty.scrolled = 0;
}, 500 );