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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide mouse over dropdown menu if mobile or tablet devices #2134

Merged
merged 4 commits into from
Mar 29, 2021

Conversation

shinyichen
Copy link
Member

No description provided.

@shinyichen shinyichen marked this pull request as draft March 22, 2021 23:16
@shinyichen shinyichen marked this pull request as ready for review March 22, 2021 23:35
/BlackBerry/i,
/Windows Phone/i,
];
var isMobileOrTablet = devices.some((d) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This certainly works. However we already have a library bowser that could parse the user agent and provide more coverage.
There is a utility:

const getBrowserInfo = function() {

or docs here: https://lancedikson.github.io/bowser/docs/index.html

@thostetler thostetler merged commit e0a85b3 into adsabs:master Mar 29, 2021
@shinyichen shinyichen deleted the hideDropdown branch April 14, 2021 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants