Don't clear overlay on mouseup if not zooming.
authorKlaus Weidner <klausw@google.com>
Fri, 27 Jul 2012 22:53:06 +0000 (15:53 -0700)
committerKlaus Weidner <klausw@google.com>
Fri, 27 Jul 2012 22:53:06 +0000 (15:53 -0700)
commit214083b469aec7f51223ec5c1532924d75c6eb2f
treefedaae24480dc69fda1f1277c8302b7440095c53
parent6f8f19efb497197dc136647de353368581131634
Don't clear overlay on mouseup if not zooming.

On endZoom, check if moveZoom was called since the last startZoom. If
not, leave the overlay canvas alone, there's no zoom rectangle to erase.

The default mouseup action unconditionally cleared the overlay canvas,
this destroyed other things that may have been drawn there such as
highlighted series, causing glitches for clickCallback use.
dygraph-interaction-model.js