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

Weird flickering when viewing graphs in standard mode on smartphone #159

Open
fedarko opened this issue Sep 13, 2019 · 2 comments
Open

Weird flickering when viewing graphs in standard mode on smartphone #159

fedarko opened this issue Sep 13, 2019 · 2 comments
Assignees

Comments

@fedarko
Copy link
Member

@fedarko fedarko commented Sep 13, 2019

This is at mgsc.umiacs.io, so it's an older version of the viewer interface than the one contained in this repository.

For some reason, the screen started flickering between black and white rapidly when I zoom in on graphs on my phone (observed this with the E. coli and sample Bandage graphs, as well as the SRS049959 graph). I noticed nodes not being "drawn," also. This is a serious issue, both because it makes interacting with the graph difficult and because the flickering could negatively affect people with photosensitivity.

Guessing this is a Cytoscape.js bug that has since been resolved -- I will try to reproduce this with the latest version of MetagenomeScope after the refactoring I've been doing. For now I'm going to temporarily take down the demo so that this issue doesn't affect people.

For reference, using Google Chrome 77.0.3865.73 on Android.

@fedarko

This comment has been minimized.

Copy link
Member Author

@fedarko fedarko commented Sep 13, 2019

Looks like updating the Cytoscape.js version didn't do anything to fix the problem. This is super weird. (It works fine on my laptop.)

I've updated mgsc.umiacs.io to show a warning explaining the situation. i'll examine this in more detail tomorrow -- this may just be an artifact of an old version of the viewer interface being used, but i have no idea why i'd only just start seeing this error now. another explanation is this is a recent chrome bug, so i can try replicating with other smartphone browsers.

@fedarko

This comment has been minimized.

Copy link
Member Author

@fedarko fedarko commented Sep 13, 2019

Something even more bizarre: the SPQR mode stuff (for the marygold example graph) seems to work fine on my phone. But the standard mode stuff (even for the marygold graph, which is super tiny) still exhibits the problem.

My guess, then, is this has to do with some sort of setting I'm using in just the standard mode but not the SPQR mode. This is corroborated by the fact that I can't reproduce this error in any of the Cytoscape.js demos.

maybe updating the xdot2cy.js -- etc versions might fix this? doubtful, but worth a shot.

@fedarko fedarko changed the title Weird flickering when viewing the demo on my phone Weird flickering when viewing the demo in standard mode on smartphone Sep 13, 2019
@fedarko fedarko changed the title Weird flickering when viewing the demo in standard mode on smartphone Weird flickering when viewing graphs in standard mode on smartphone Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.