Git Product home page Git Product logo

Comments (8)

maxkfranz avatar maxkfranz commented on June 12, 2024

There may or may not be value to this, but it would definitely have to allow dragging after the initial tap.

from cytoscape.js-cxtmenu.

maxkfranz avatar maxkfranz commented on June 12, 2024

Requires change in core. Perhaps v2.4 can not trigger the drag gesture if taphold occurred.

Ref : cytoscape/cytoscape.js#869

from cytoscape.js-cxtmenu.

maxkfranz avatar maxkfranz commented on June 12, 2024

Simpler:

node.on('taphold', function(e){
  this.ungrabify();
}).on('free', function(e){
  this.grabify();
});

from cytoscape.js-cxtmenu.

maxkfranz avatar maxkfranz commented on June 12, 2024

Requires bugfix in 2.3.11

from cytoscape.js-cxtmenu.

maxkfranz avatar maxkfranz commented on June 12, 2024

@Braintelligence
@AjitPS
@thachp

This should do it, but to use it you'll need to wait for 2.3.11 or build cy.js from master.

from cytoscape.js-cxtmenu.

Braintelligence avatar Braintelligence commented on June 12, 2024

Thanks a lot!

from cytoscape.js-cxtmenu.

AjitPS avatar AjitPS commented on June 12, 2024

@maxkfranz: Thanks Max

from cytoscape.js-cxtmenu.

AjitPS avatar AjitPS commented on June 12, 2024

On a touch device, holding (taphold) with one finger allows me to drag the nodes around. However, if I continue holding a node, the radial context menu pops up (for a very short duration). Is there a way to ensure that the context menu stays visible instead of disappearing almost immediately ?

from cytoscape.js-cxtmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.