Commit f6cebd3f authored by Ole Laursen's avatar Ole Laursen

Update excanvas and remove previous eventholder work-around to fix hover/click...

Update excanvas and remove previous eventholder work-around to fix hover/click bug in IE 8 (test case by Ara Anjargolian); add support for setting the redraw overlay period and set it to 60 frames/s
parent 9f060ec8
...@@ -679,6 +679,10 @@ Customizing the grid ...@@ -679,6 +679,10 @@ Customizing the grid
mouseActiveRadius: number mouseActiveRadius: number
} }
interaction: {
redrawOverlayInterval: number or -1
}
The grid is the thing with the axes and a number of ticks. Many of the The grid is the thing with the axes and a number of ticks. Many of the
things in the grid are configured under the individual axes, but not things in the grid are configured under the individual axes, but not
all. "color" is the color of the grid itself whereas "backgroundColor" all. "color" is the color of the grid itself whereas "backgroundColor"
...@@ -798,6 +802,11 @@ If you want to disable interactivity for a specific data series, you ...@@ -798,6 +802,11 @@ If you want to disable interactivity for a specific data series, you
can set "hoverable" and "clickable" to false in the options for that can set "hoverable" and "clickable" to false in the options for that
series, like this { data: [...], label: "Foo", clickable: false }. series, like this { data: [...], label: "Foo", clickable: false }.
"redrawOverlayInterval" specifies the maximum time to delay a redraw
of interactive things (this works as a rate limiting device). The
default is capped to 60 frames per second. You can set it to -1 to
disable the rate limiting.
Specifying gradients Specifying gradients
==================== ====================
......
This diff is collapsed.
This diff is collapsed.
...@@ -764,9 +764,8 @@ ...@@ -764,9 +764,8 @@
ctx = canvas.getContext("2d"); ctx = canvas.getContext("2d");
octx = overlay.getContext("2d"); octx = overlay.getContext("2d");
// we include the canvas in the event holder too, because IE 7 // define which element we're listening for events on
// sometimes has trouble with the stacking order eventHolder = $(overlay);
eventHolder = $([overlay, canvas]);
if (reused) { if (reused) {
// run shutdown in the old plot object // run shutdown in the old plot object
...@@ -2434,7 +2433,7 @@ ...@@ -2434,7 +2433,7 @@
function triggerRedrawOverlay() { function triggerRedrawOverlay() {
if (!redrawTimeout) if (!redrawTimeout)
redrawTimeout = setTimeout(drawOverlay, 30); redrawTimeout = setTimeout(drawOverlay, 1000/60);
} }
function drawOverlay() { function drawOverlay() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment