Skip to content

Commit

Permalink
Merge pull request #249 from will-moore/fix_roi_loading_play_movie
Browse files Browse the repository at this point in the history
Fix ROI loading on play movie
  • Loading branch information
jburel authored Mar 14, 2019
2 parents 4ce196f + 73e5931 commit 1531206
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/regions/regions-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ export default class RegionsList extends EventSubscriber {
let last_plane = image_info.dimensions['max_' + params.dim] - 1;
let dim_value = image_info.dimensions[params.dim];
// If movie is playing and we're not on the last plane - ignore
if (image_config.is_movie_playing && dim_value < last_plane) {
if (image_config.is_movie_playing && dim_value < last_plane &&
this.regions_info.isRoiLoadingPaginatedByPlane()) {
this.regions_info.resetRegionsInfo();
return;
}
Expand Down

0 comments on commit 1531206

Please sign in to comment.