Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent the admin pointer from staying below the viewport #1694

Merged
merged 1 commit into from Dec 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 0 additions & 10 deletions assets/js/amp-admin-pointer.js
Expand Up @@ -27,16 +27,6 @@ var ampAdminPointer = ( function( $ ) { // eslint-disable-line no-unused-vars
pointer: data.pointer.pointer_id,
action: 'dismiss-wp-pointer'
} );
},

/**
* Adds styling to the pointer, to ensure it appears alongside the AMP menu.
*
* @param {Object} event The pointer event.
* @param {Object} t Pointer element and state.
*/
show: function( event, t ) {
t.pointer.css( 'position', 'fixed' );
}
}
);
Expand Down