Skip to content

Commit

Permalink
Update doc, remove var
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Dec 16, 2021
1 parent b78d450 commit e8f3641
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/image/size.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ dwv.image.Size.prototype.moreThanOne = function (dimension) {
};

/**
* Check if the third direction of an orientation matrix has a size
* of more than one.
* Check if the associated data is scrollable: either in 3D or
* in other directions.
*
* @param {dwv.math.Matrix33} viewOrientation The orientation matrix.
* @returns {boolean} True if scrollable.
Expand All @@ -85,8 +85,7 @@ dwv.image.Size.prototype.canScroll = function (viewOrientation) {
if (typeof viewOrientation !== 'undefined') {
dimension = viewOrientation.getThirdColMajorDirection();
}
var scroll3D = this.moreThanOne(dimension);
var canScroll = scroll3D;
var canScroll = this.moreThanOne(dimension);
// check possible other dimensions
for (var i = 3; i < this.length(); ++i) {
canScroll = canScroll || this.moreThanOne(i);
Expand Down

0 comments on commit e8f3641

Please sign in to comment.