commit/galaxy-central: jgoecks: Trackster: bug fixes for 36d36384704b
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/63319bc07b56/ changeset: 63319bc07b56 user: jgoecks date: 2012-02-07 23:07:35 summary: Trackster: bug fixes for 36d36384704b affected #: 1 file diff -r 23b173247757c383e9f1c4fb736008a6623e7327 -r 63319bc07b56127bcd3c44ec6e950541c2c4aa0c static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -1738,7 +1738,7 @@ // Calculate resolution in both pixels/base and bases/pixel; round bases/pixels for tile calculations. // TODO: require minimum difference in new resolution to update? - this.resolution_b_px = Math.round( (this.high - this.low) / this.viewport_container.width() ); + this.resolution_b_px = (this.high - this.low) / this.viewport_container.width(); this.resolution_px_b = this.viewport_container.width() / (this.high - this.low); // Overview @@ -3590,8 +3590,8 @@ * with values tile_low and tile_high. */ _get_tile_bounds: function(tile_index, resolution) { - var tile_low = tile_index * TILE_SIZE * resolution, - tile_length = TILE_SIZE * resolution, + var tile_low = Math.floor( tile_index * TILE_SIZE * resolution ), + tile_length = Math.ceil( TILE_SIZE * resolution ), // Tile high cannot be larger than view.max_high, which the chromosome length. tile_high = (tile_low + tile_length <= this.view.max_high ? tile_low + tile_length : this.view.max_high); return [tile_low, tile_high]; 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