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

Screen and mouse offset taking half of the Cytoscape container #3285

Open
7 tasks
FerFrassia opened this issue Nov 2, 2024 · 1 comment
Open
7 tasks

Screen and mouse offset taking half of the Cytoscape container #3285

FerFrassia opened this issue Nov 2, 2024 · 1 comment
Labels
bug A bug in the code of Cytoscape.js

Comments

@FerFrassia
Copy link

Environment info

  • Cytoscape.js version : 3.30.3
  • Browser/Node.js & version : Safari Version 17.2.1 (64 bit), Version 130.0.6723.92 (Official Build) (x86_64) (64 bit)

Current (buggy) behaviour

What does the bug do?

There's a horizontal offset in the container and all networks appear on the right side of the offset. Clicking anywhere in left side of the offset actually clicks the right side of the offset.
Dragging the graph from the right side of the offset to the left side of the offset shows that the graph goes behind whatever is there and disappears.

cytoscape.offset.bug.mov

Desired behaviour

What do you expect Cytoscape.js to do instead?

There should be no offset for the mouse or the UI and the graph should be able to be seen from anywhere in the canvas.

Minimum steps to reproduce

What do you need to do to reproduce the issue?

  1. Click and hold somewhere in the left half of the canvas.
  2. Drag to the left and you'll see the graph disappearing behind something.

Fork/clone this JSBin demo and reproduce your issue so that your issue can be addressed quickly and effectively:
http://jsbin.com/fiqugiq

For reviewers

Reviewers should ensure that the following tasks are carried out for incorporated issues:

  • Ensure that the reporter has included a reproducible demo. They can easily fork this JSBin demo: http://jsbin.com/fiqugiq
  • The issue has been associated with a corresponding milestone.
  • The commits have been incorporated into the corresponding branches. Bug-fix patches go on
    • master,
    • unstable, and
    • the previous feature release branch (e.g. 1.1.x if the current release is 1.2).
  • The issue has been labelled as a bug, if necessary.
@FerFrassia FerFrassia added the bug A bug in the code of Cytoscape.js label Nov 2, 2024
@mikekucera
Copy link
Contributor

I've never seen this happen before and I don't know how to reproduce the issue. We are going to need a reproducible demo using jsbin or some other reliable way of reproducing the issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in the code of Cytoscape.js
Projects
None yet
Development

No branches or pull requests

2 participants