commit/galaxy-central: jgoecks: Trackster: remove throttling during dynamic filtering because it's not needed with requestAnimationFrame.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/1447e4ebe7c8/ changeset: 1447e4ebe7c8 user: jgoecks date: 2011-08-23 23:27:58 summary: Trackster: remove throttling during dynamic filtering because it's not needed with requestAnimationFrame. affected #: 1 file (645 bytes) --- a/static/scripts/trackster.js Tue Aug 23 17:21:37 2011 -0400 +++ b/static/scripts/trackster.js Tue Aug 23 17:27:58 2011 -0400 @@ -1419,25 +1419,14 @@ max: -Number.MIN_VALUE, values: [0, 0], slide: function(event, ui) { - // - // Always update UI values, but set timeout for doing more--especially drawing-- - // so that viz is more responsive. - // TODO: remove this because it's no longer necessary as we have requestAnimationFrame(). - // - prev_values = ui.values; - values_span.text(ui.values[0] + "-" + ui.values[1]); - setTimeout(function() { - if (ui.values[0] == prev_values[0] && ui.values[1] == prev_values[1]) { - var values = ui.values; - // Set new values in UI. - values_span.text(values[0] + "-" + values[1]); - // Set new values in filter. - filter.low = values[0]; - filter.high = values[1]; - // Redraw track. - manager.track.draw(true, true); - } - }, 50); + var values = ui.values; + // Set new values in UI. + values_span.text(values[0] + "-" + values[1]); + // Set new values in filter. + filter.low = values[0]; + filter.high = values[1]; + // Redraw track. + manager.track.draw(true, true); }, change: function(event, ui) { filter.control_element.slider("option", "slide").call(filter.control_element, event, ui); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket