commit/galaxy-central: jgoecks: Small fixes for trackster resolution calculation.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/90f3b97fba53/ changeset: 90f3b97fba53 user: jgoecks date: 2013-02-19 14:56:32 summary: Small fixes for trackster resolution calculation. affected #: 1 file diff -r 1f073bb32539ea9d978c04a892a36d995561cb30 -r 90f3b97fba53d68f955ddce9de97d12e10763b45 static/scripts/viz/trackster/tracks.js --- a/static/scripts/viz/trackster/tracks.js +++ b/static/scripts/viz/trackster/tracks.js @@ -1427,11 +1427,12 @@ // -- Drawing code -- - // Calculate resolution in both pixels/base and bases/pixel; round bases/pixels for tile calculations. - // TODO: require minimum difference in new resolution to update? + // Calculate resolution in both pixels/base and bases/pixel. + // TODO: require minimum difference in new resolution to update? This + // would help alleviate issues when window is being resized. this.resolution_b_px = (this.high - this.low) / this.viewport_container.width(); - this.resolution_px_b = this.viewport_container.width() / (this.high - this.low); - + this.resolution_px_b = 1 / this.resolution_b_px; + // Overview var left_px = ( this.low / (this.max_high - this.max_low) * this.overview_viewport.width() ) || 0; var width_px = ( (this.high - this.low)/(this.max_high - this.max_low) * this.overview_viewport.width() ) || 0; 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