mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-23 18:29:49 +00:00
Merge "Use new ve.activationStart hook to hide header earlier when loading editor"
This commit is contained in:
commit
4557c0910b
|
@ -303,7 +303,7 @@ function isInViewport( element ) {
|
||||||
*/
|
*/
|
||||||
function addVisualEditorHooks( targetIntersection, observer ) {
|
function addVisualEditorHooks( targetIntersection, observer ) {
|
||||||
// When Visual Editor is activated, hide the sticky header.
|
// When Visual Editor is activated, hide the sticky header.
|
||||||
mw.hook( 've.activate' ).add( () => {
|
mw.hook( 've.activationStart' ).add( () => {
|
||||||
hide();
|
hide();
|
||||||
observer.unobserve( targetIntersection );
|
observer.unobserve( targetIntersection );
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue