From dd0345d1dd60fadbd4f8bf6b3dfba6f5d6badfea Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Wed, 4 Sep 2024 22:56:30 -0700 Subject: [PATCH] Performance bug - in some cases data load for CRAM files is triggered prematurely, outside the maximum visibility window. See #1883 Version bump --- js/trackView.js | 2 +- js/version.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/trackView.js b/js/trackView.js index ad0dad770..494c81c7c 100644 --- a/js/trackView.js +++ b/js/trackView.js @@ -422,7 +422,7 @@ class TrackView { const viewportsToRepaint = visibleViewports.filter(vp => vp.needsRepaint()).filter(viewport => viewport.checkZoomIn()) // Get viewports that require a data load - const viewportsToReload = visibleViewports.filter(viewport => viewport.needsReload()) + const viewportsToReload = visibleViewports.filter(viewport => viewport.checkZoomIn()).filter(viewport => viewport.needsReload()) // Trigger viewport to load features needed to cover current genomic range // NOTE: these must be loaded synchronously, do not user Promise.all, not all file readers are thread safe diff --git a/js/version.js b/js/version.js index fca18121c..0c5511e76 100644 --- a/js/version.js +++ b/js/version.js @@ -1,4 +1,4 @@ -const _version = "3.0.4" +const _version = "3.0.5" function version() { return _version } diff --git a/package.json b/package.json index 9c7faa134..f205705c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "igv", - "version": "3.0.4", + "version": "3.0.5", "main": "dist/igv.esm.js", "browser": "dist/igv.js", "module": "dist/igv.esm.js",