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

Removing Call to Lasso #3

Open
cfollow1 opened this issue Jul 14, 2015 · 1 comment
Open

Removing Call to Lasso #3

cfollow1 opened this issue Jul 14, 2015 · 1 comment

Comments

@cfollow1
Copy link

Hello. I am trying to figure out a way to turn off the lasso applied to an element. For something like zoom, I could write svg.on('.zoom',null), but the same approach applied to lasso does not seem to work. If it matters, I'm trying to make lasso toggleable, so that I can use mousedrag for multiple things in my program.

Thanks!

@juba
Copy link

juba commented Feb 16, 2016

I think you should be able to remove the lasso call by removing its on listeners :

selection.on(".dragstart", null);
selection.on(".drag", null);
selection.on(".dragend", null);

Please note that here selection must be equal to your area lasso parameter.

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

No branches or pull requests

2 participants