Giter Site home page Giter Site logo

Comments (7)

maxkfranz avatar maxkfranz commented on June 7, 2024

Nothing is going to work with IE<9, as it doesn't support canvas

from cytoscape.js-cxtmenu.

eelco2k avatar eelco2k commented on June 7, 2024

well that's strange that when I use <meta http-equiv="X-UA-Compatible" content="IE=8">
on a IE10 browser canvas works. it's the compatible mode of IE=8.

It's not about if canvas works or not... The case is that the rightclick (cxttapstart taphold) in IE9/10 behaves strange. the default contextmenu of windows is appearing after the second time rightclick. which causes the contextmenu of cytoscape to stay visible. and other nodes are no longer reacting on the cy.cxtmenu().

By adding this http-equiv this behaviour changes so when i use content="IE=8" or lower. the context menu works. but then the node labels are not visible because i use background-image svg's. as labels instead of the normal labels. (but that's a different problem)

So i cannot use IE=8 as a solution and for the fix of my background-image I need to explicitly put the meta http=equiv to IE=9. because IE=10 has that browser bug with the svg background. Otherwise I wouldn't use any of the meta http=equiv in my header.

Furthermore also native IE10 (with no http=equiv IE=8/9/10 mode) users report that rightclick also triggers the standard windows context menu when selecting an command item. except that the cytoscape menu will dissapear and when right clicking on another node the cy.cxtmenu keeps functioning.

For that i found a workaround:

//IE contextmenu fix $('body').bind('contextmenu', function(e) { if (e.target.tagName === "CANVAS") { e.preventDefault(); } });

from cytoscape.js-cxtmenu.

eelco2k avatar eelco2k commented on June 7, 2024

I have added a video where i reproduce the problem:

vimeo cxtmenu IE9 & 10 problem

from cytoscape.js-cxtmenu.

eelco2k avatar eelco2k commented on June 7, 2024

another demo to demonstratie IE9/10 bug: used the cxtmenu demo.html file this time.

(https://vimeo.com/193874830)

from cytoscape.js-cxtmenu.

maxkfranz avatar maxkfranz commented on June 7, 2024

You're not going to get any visualization technology to work in IE8 -- except Flash. No version of IE supports SVG properly. Canvas works only in IE9+: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement

Those compatibility modes aren't accurate and match no version of IE proper.

If you really want to support a browser that is the better part of a decade out of date, I'd really recommend using Flash.

from cytoscape.js-cxtmenu.

eelco2k avatar eelco2k commented on June 7, 2024

The video above reproduces the problem in IE9&10 which has nothing to do with SVG because the cxtmenu is pure canvas. Another problem is that I cannot use IE11 because of the SVG background issue. But that's not the problem i want to raise in this issue.

I only want to say that users who only have IE9 or 10 the cxtmenu with rightclick just doesn't behave correctly. If the support of those browsers are not within the scope of cxtmenu then i can understand. but it would be nice if for those usecases (cxtmenu with IE9/10) would work without the interference of the default windows contextmenu. And that the cxtmenu functionality then after one time rightclick is gone.

from cytoscape.js-cxtmenu.

maxkfranz avatar maxkfranz commented on June 7, 2024

The extension already prevents the system context menu from showing up. Otherwise, you'd see it in Chrome and Firefox. If there are bugs in IE itself, there's nothing I can do.

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.