Hi Everyone,

I'm having a problem with my existing code that uses d3.  The "drag" 
event on top of <svg> doesn't work anymore since qooxdoo 4.0.

I have a short demo that can be ran in the Online Playground at 
http://demo.qooxdoo.org/devel/playground/
There you won't see a debug message saying "drag" or "dragend" and that 
is the problem.

You will see the correct debug messages if you run the same program in 
Qooxdoo 3.5 http://demo.qooxdoo.org/3.5/playground/

Thanks,


var self = this;
var req = new qx.bom.request.Script();
req.onload = function() {


     var win = new qx.ui.window.Window("First Window");
     win.setWidth(400);
     win.setHeight(400);
     win.setShowMinimize(false);

     win.setLayout(new qx.ui.layout.Grow());

     self.getRoot().add(win, {left:20, top:20});
     win.open();

     var html = new qx.ui.embed.Html("<div id=\"dc\"></div>").set({
                 maxHeight: 400,
                 minHeight: 400,
                 maxWidth: 400,
                 minWidth: 400,
                 selectable: false
             });
     win.add(html);


     html.addListener("appear", function() {

         var d3container = d3.select('#dc');

         var drag = d3.behavior.drag()
           .on("dragstart", function() {
             console.log("dragstart");
           })
           .on("drag", function() {
             // !!! NOT WORKING
             console.log("drag");
           })
           .on("dragend", function() {
             // !!! NOT WORKING
             console.log("dragend");
           });


         var svg = d3container.append('svg');
         svg.attr('width', 400);
         svg.attr('height', 400);
         svg.call(drag);

     }, self);



};
req.open("GET", 'http://d3js.org/d3.v3.min.js');
req.send();





------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to