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

Fix the Finder scope buttons in Chrome #314

Merged
merged 2 commits into from Jul 15, 2020

Conversation

pkgw
Copy link
Contributor

@pkgw pkgw commented Jul 15, 2020

Fixes #312. Also improve fix the coordinate info layout in recent Firefox.

pkgw added 2 commits July 15, 2020 10:00
On recent Firefox the div wasn't fitting in anymore, resulting in ugly overflow.
On recent Chrome, turning "hidden" on and off seems to somehow interfere with
event handling, such that the buttons on the finder scope weren't working
anymore [1]. Despite lots of research I can't figure out what exactly is causing
the problem, but it's very likely a new behavior since this code must have
been tested on Chrome historically.

The jQuery fadeIn/fadeOut functions end up altering the element CSS to use
"display: none", which as far as I can tell is an equivalent flag for our
purposes. So if we don't mess with "hidden" at all and just pay attention to
the "display" state, things seem to work again.

Fixes WorldWideTelescope#312.

[1]: For posterity: in my testing, click events seemed to be going through,
but they would be targeting the toplevel `body` element, not the `a.btn`
elements, breaking the processing used by jQuery/Angular. Bizarre.
@pkgw pkgw merged commit 6ad6e4c into WorldWideTelescope:master Jul 15, 2020
@pkgw pkgw deleted the fix-finder-chrome branch July 15, 2020 14:12
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.

Finder scope "research" button not working
1 participant