]> git.parisson.com Git - timeside.git/commitdiff
Server/WavesUI: fix zoom update for all layers
authorThomas Fillon <thomas@parisson.com>
Mon, 9 Mar 2015 10:07:07 +0000 (11:07 +0100)
committerThomas Fillon <thomas@parisson.com>
Mon, 9 Mar 2015 10:07:07 +0000 (11:07 +0100)
timeside/player/static/timeside/js/timeside-waves.js

index 39a4186dd1cf90af5ab92e4d1e411adb59460136..b85782709b8a8d82cfa0031722f1cab5f01bed95 100644 (file)
@@ -94,6 +94,8 @@ function waveform(div_id) {
             .on('mousemove', function(e) {
                // update graph xZoom
                graph_sub.xZoom(e);
+               graph_sub.update();
+
                // update axis
                axis.call(xAxis);
                
@@ -140,6 +142,7 @@ function timeline_get_data(json_url, div_id) {
             .on('mousemove', function(e) {
                // update graph xZoom
                graph.xZoom(e);
+               graph.update();
             })
             .on('mouseup', function(e) {
                // set the final xZoom value of the graph