question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`dragfree`, `dragfreeon`, `freeon` events

See original GitHub issue

Add a new event, dragfree, that is emitted when a set of nodes is has the following event sequence: grab => drag => free.

Use the on suffix to indicate the event concerns the node that the user’s pointer is on, just like grabon.

Not supporting freeon with the previous addition of grabon was an oversight that this issue also addresses. free was previously being emitted with the semantics of freeon. Now, free happens on all the nodes that would be moved and freeon is just for the one under the pointer.

Implement for

  • Mouse
  • Touch

OP follows:


Environment info

  • Cytoscape.js version : 3.1.1
  • Browser version : Chrome 60.0.3112.90 (64-bit)

Current (buggy) behaviour

Whenever I click a node, the free event is trigerred. Is this intended by the spec? According to the doc:

free: when an element is freed (i.e. let go from being grabbed)

Desired behaviour

Clicking a node would not trigger the free event.

Minimum steps to reproduce

cy.on("free", "node", (evt) => {
    console.log("triggered")
});

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alexnaultcommented, Oct 3, 2017

I’ll test it as soon as I can!

0reactions
maxkfranzcommented, Oct 6, 2017

Great; closing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strategy: Promoting Drug-Free Social Events for Youth
Drug -free events can provide refreshments or full meals, band music, contests, and door prizes. Students can select, and schools and parents can...
Read more >
Drug-Free Workplace Programs - SAMHSA
Drug -Free workplace programs are comprehensive programs that address illicit drug use by federal employees and in federally regulated industries.
Read more >
Red Ribbon Campaign | Largest drug-use prevention ...
Support healthy, drug free kids. The Red Ribbon Campaign relies on your generosity. For every dollar invested in prevention, $7 are saved in...
Read more >
DEA Supports Healthy, Drug-free Lives with 2022 Red Ribbon ...
Live Drug Free,” reminds all Americans that living a drug-free ... Approximately 80 million people participate in Red Ribbon events every ...
Read more >
Partnership for a Drug-Free Community - Events - Facebook
Partnership for a Drug-Free Community, Huntsville, Alabama. 728 likes · 11 talking about this · 92 were here. ... There are no upcoming...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found