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

Box selection panning after some time #784

Closed
jhonatandarosa opened this issue Dec 30, 2014 · 16 comments
Closed

Box selection panning after some time #784

jhonatandarosa opened this issue Dec 30, 2014 · 16 comments
Labels
bug A bug in the code of Cytoscape.js priority-1-high
Milestone

Comments

@jhonatandarosa
Copy link

When using box selection, the graph starts to pan after some time.

Steps to reproduce:

@rockshandy
Copy link

I was just about to log this same issue actually.

@maxkfranz
Copy link
Member

Odd. I didn't see that on my local instance before publishing, but there were some issues with publishing the last x.y.z release. I'll take a look; thanks

@maxkfranz maxkfranz added priority-1-high bug A bug in the code of Cytoscape.js labels Jan 6, 2015
@maxkfranz maxkfranz modified the milestones: 2.3.7, 2.3.8 Jan 6, 2015
@maxkfranz
Copy link
Member

Adding to 2.3.8 milestone. Given the severity of the issue, it may even merit its own release.

@danieljue
Copy link

Thank you Max, we would really like to use this latest version of 2.3.7+, and this bug came up for us as well.

@maxkfranz
Copy link
Member

Thanks for the feedback; I hope to fix this tomorrow. If you all could try it out too once I push it but before I formally release it, that would be a big help. Thanks

@bertomaniac
Copy link

I'm using 2.3.4 and just tried this out in our environment and wasn't able to reproduce. Perhaps this bug was introduced in 2.3.5+?

@maxkfranz
Copy link
Member

Thank you for your patience, guys. I've pushed a fix. Please try it out and I'll push out the release ASAP.

Snapshot build: http://js.cytoscape.org/download/cytoscape.js-snapshot-16cf86597e-1420740052765.zip

@jhonatandarosa
Copy link
Author

Hi Max, thanks for your immediate attention on this issue.
I tested the snapshot in our application and on a simple demo from the site.

The issue with the box selection seems to be solved, but the pan stopped working.
Tried with both values in boxSelectionEnabled.
Also checked if the pan was enabled with userPanningEnabled() and panningEnabled(), both returned true

@maxkfranz
Copy link
Member

OK. That's actually a bit of a relief in a way, because I re-enabled a "magic" number condition in that build. I'll take a look; thanks

maxkfranz added a commit that referenced this issue Jan 8, 2015
maxkfranz added a commit that referenced this issue Jan 8, 2015
@maxkfranz
Copy link
Member

@jhonatandarosa
Copy link
Author

Yep, this snapshot works perfectly. Thanks

@rockshandy
Copy link

This fixes my issue too. There is sometimes a slight delay between when the shaded circle appears to indicate I clicked long enough to start panning, and switching to panning mode. Box selection starts instead sometimes if I move my mouse right after the panning indicator appears. Waiting a little longer after I click works as expected, and panning happens instead. This doesn't happen very often, but I wanted to mention it incase someone else observed this.

@maxkfranz
Copy link
Member

@maxkfranz
Copy link
Member

Previous update fixed the fast case that shows both UI indicators. There is also the slow case, which is harder to time (i.e. must be precise at a later time).

@rockshandy
Copy link

Seems to fix the issue I mentioned, thanks for the fix and quick turn around!

@maxkfranz
Copy link
Member

OK. There's still a minor graphical glitch if the timing is slow but very precise. Closing for 2.3.8 release.

Ref: #800

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 priority-1-high
Projects
None yet
Development

No branches or pull requests

5 participants