sunjavagroups / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Enable Real-Time Redisplay in Navigate Dragging #536

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I just added a modification to jquery.flot.navigate.js which causes the chart 
to continuously refresh while dragging. Thought you might find it useful, 
though there may be a good reason why it is not currently included. Please note 
that I am just starting on Pan and Zoom, and have not tested this change 
extensively.

Following is the code change (starting on line 131 of jquery.flot.navigate.js 
in my version, about halfway through the file):

eventHolder.bind("drag", function (e) {
    // unused at the moment, but we need it here to
    // trigger the dragstart/dragend events
    // the following three lines were added to enable
    // real-time dragging redisplay.
    plot.pan({ left: pageX - e.pageX,
               top: pageY - e.pageY });
    pageX = e.pageX;
    pageY = e.pageY;
});

Original issue reported on code.google.com by rbb362...@gmail.com on 16 May 2011 at 4:47

GoogleCodeExporter commented 8 years ago
Hey!

Did you try the latest release? I believe it's already fixed in there?

Original comment by olau%iol...@gtempaccount.com on 16 May 2011 at 6:09

GoogleCodeExporter commented 8 years ago
No, I haven't -- I'm using a pretty old build. I'll give it a try. Thanks!

Original comment by rbb362...@gmail.com on 17 May 2011 at 4:59

GoogleCodeExporter commented 8 years ago

Original comment by olau%iol...@gtempaccount.com on 3 Jun 2011 at 4:35

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:52